Tag:

如何重新连接到docker实例

我会从头开始。 我已经创build了一个在Azure上安装了docker的Ubuntu机器。 在顶部,我创build了两个docker集装箱,我用来从一台使用docker机的旧电脑进行pipe理任务。 我改变了我的电脑,所以我需要从新的连接。 我已经添加了我的azure色订阅 但是,当我尝试docker docker-machine cdmdlet到现有的容器时,我有以下错误信息: PS C:\WINDOWS\system32> docker-machine ssh vm name Host does not exist: "vm name". 机器正在运行,但我想我将不得不重新创build用于连接的证书。 我已经尝试了以下,没有运气: PS C:\WINDOWS\system32> docker-machine regenerate-certs vm name Regenerate TLS machine certs? Warning: this is irreversible. (y/n): y Regenerating TLS certificates Host does not exist: "vm name" 我不再能够访问旧的机器。 有没有人进入相同的情况? 任何想法都欢迎。

使用gcloud推送Docker镜像失败

我试图在谷歌云上部署一个jijster项目。 我能够创build一个docker的形象,但我一直无法推动它。 在谷歌云SDK壳,当我运行: gclouddocker工具 – 推送gcr.io/dimadigitallearning/openjdk-app:0.0.1 我得到这个错误: 连接时发生错误:发布http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.28/images/gcr.io/dimadigitallearning/openjdk-app/push?tag = 0.0.1 :open //./pipe/ docker_engine:Le fichierspécifiéest introuvable。 在Windows的默认守护进程configuration中,docker客户端必须运行提升才能连接。 这个错误也可能表明docker守护进程没有运行。 这是我第一次使用谷歌云和docker。

无法安装windowsServerCore容器图像

我正在尝试使用下面的命令在我的WIndows 2016服务器上安装windowsServercore映像。 Install-containerImage WindowsServerCore 运行时得到下面的错误信息。 Install-ContainerOSImage : The term 'Install-ContainerOSImage' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. 发现从文章有一个工作 https://social.msdn.microsoft.com/Forums/en-US/fc571caf-af13-45ed-a021-cfcfcf532645/the-term-installcontainerosimage-is-not-recognized-as-the-name-of-a- cmdlet的上build造-构build- 14385?=论坛windowscontainers 在运行新文章中的命令的同时,获取不同的错误消息。 docker load -i nanoserver.tar.gz […]

Docker容器运行后存在,日志中没有错误

我有一个由图像分析模型和2个脚本文件组成的python应用程序。 在Main.py中,我有XMLRPC服务器运行永远听客户端。 if __name__ == "__main__": server = SimpleXMLRPCServer(("0.0.0.0", 8888)) print("Listening on port 8888…") server.register_function(result, "result") server.serve_forever() 我的Dcoker文件是: # Start with NVIDIA's CUDA and cuDNN base image. FROM nvidia/cuda:8.0-cudnn5-devel-ubuntu16.04 # Argument: the username & password. ARG username ARG user_password # Update the system. RUN echo "debconf debconf/frontend select Noninteractive" | debconf-set-selections RUN apt-get update RUN […]

在OSX上创build带有Virtualbox节点的Swarm集群,连接不可用

我正在尝试创build一个集群,首先我创build节点 $ docker-machine create -d virtualbox node1 $ docker-machine create -d virtualbox node2 然后我连接到第一个节点,并使用公共IP启动群集模式 $ docker-machine ssh node1 $ docker swarm init –advertise-addr 10.0.2.15 第二个命令给了我join群的命令 然后我连接到node2 $ docker-machine ssh node2 我运行命令join群 $ docker swarm join –token SWMTKN-1-377ttnr1dn42ukidq5bmk7d7yzxuccawy4w7dokdv2ho80v743-5g35bgosj9hnixuclcvrarzlb 10.0.2.15:2377 但是我得到以下错误 来自守护进程的错误响应:rpc错误:代码= 14 desc = grpc:连接不可用 – 更新1 我使用公共IP地址(eth0),它具有我描述的行为。 但是,如果我使用专用networking(eth1),它的工作原理。 不知道为什么,我会试着找出原因。

是否有可能创build一个Docker的图像无操作系统?

要安装我的微服务二进制文件,我需要一个centos。 而且,因为我有20微服务,我试图find一种方法来优化图像大小,所以我想知道是否有一种方法来创build一个没有os的docker镜像,并在部署的时刻Docker从操作系统层caching它在所有的图像..我是一个初学者,所以我不知道我是否清楚在我的发言?

在谷歌容器registry中使用Amazon ECS

当我尝试使用AWS ECS与私人谷歌容器registry我的任务总是在挂起状态。 根据AWS文档,我在容器定义中添加了envvariables ECS_ENGINE_AUTH_TYPE=dockercfg ECS_ENGINE_AUTH_DATA= {"https://eu.gcr.io": { "email": "not@val.id", "auth": "some hash" }} 但是我得到这个错误 "CannotPullContainerError: Error: image not found" 我的完整任务定义 { "requiresAttributes": [], "taskDefinitionArn": "arn:aws:ecs:eu-west-1:745964170259:task-definition/test:2", "status": "ACTIVE", "revision": 2, "containerDefinitions": [ { "volumesFrom": [], "memory": 128, "extraHosts": null, "dnsServers": null, "disableNetworking": null, "dnsSearchDomains": null, "portMappings": [ { "hostPort": 80, "containerPort": 80, "protocol": "tcp" } ], […]

如何使用docker-compose在多个容器之间传递参数

您好,我想了解docker组成,以及如何传递容器之间的参数,以便我可以在我的应用程序中使用它。 我已经使用两个微服务构build了一个简单的Hello World应用程序 第一个微服务是使用java: //java code hello.java public class hello { public static void main(String args[]) { System.out.println("hello world from java"); } } //Dockerfile for creating this image FROM java:7 COPY hello.java . RUN javac hello.java CMD ["java","hello"] 同样的图像使用python我有两个文件: hello.py print("hello from python") 这个图像的Dockerfile是: FROM python:2.7 COPY hello.py . CMD ["python","hello.py"] 我的docker – 撰写文件: javacl: […]

如何从局域网上的另一台机器访问Docker容器

我正在使用“Docker for Mac”并在主机上运行容器。 我可以通过主机上的本地主机访问容器。 但它不能从局域网上的其他系统。 容器是nginx web服务器,可以在localhost:80上访问,但是不能从同一局域网上的其他系统访问。 我希望其他系统能够访问主机上的容器。 编辑1:添加docker-composeconfiguration和“docker info”命令输出 version: '2' services: nginx: image: artifactory.service.dev:5000/nginx:latest network_mode: host ports: – "80:80" – "10001-10020:10001-10020" – "8080:8080" volumes: – ~/docker/.docker/nginx/html:/usr/share/nginx/html redis: image: artifactory.service.dev:5000/redis:latest restart: always ports: – "6379:6379" activemq: image: artifactory.service.dev:5000/rmohr/activemq:5.11.1 restart: always ports: – "61613:61613" – "61616:61616" – "8161:8161" oracle: image: artifactory.service.dev:5000/oracle-12c:latest restart: always ports: – […]

Docker for windows10运行django失败:无法打开文件'manage.py':没有这样的文件或目录

我刚开始一个示例Django的应用程序。 并使用docker运行它。 我的docker形象如: FROM python:3.5 ENV PYTHONUNBUFFERED 1 RUN mkdir /code WORKDIR /code ADD requirements.txt /code/ RUN pip install -r requirements.txt ADD . /code/ 我的docker-compose.yml文件: version: '2' services: django: build: . command: python manage.py runserver 0.0.0.0:8000 volumes: – .:/code ports: – "8000:8000" 当我运行docker-compose up命令,它成功地build立,但在运行command: python manage.py runserver 0.0.0.0:8000失败command: python manage.py runserver 0.0.0.0:8000 ,它抱怨python: can't open […]