如何configurationDocker的Windows推送使用主机文件的存储库

我试图从我的本地开发箱到我的Windows主机文件中设置主机名远程私人存储库的容器。 当我推我得到这个: docker push docker:5000/m2 The push refers to a repository [docker:5000/m2] Put http://docker:5000/v1/repositories/m2/: dial tcp: lookup docker on 192.168.65.1:53: no such host 如果我使用babun在URL上执行curl -vvv,我会得到: curl -vvv http://docker:5000/v1/repositories/m2/ * STATE: INIT => CONNECT handle 0x20048188; line 1034 (connection #-5000) * Added connection 0. The cache now contains 1 members * Trying 192.168.1.8… * STATE: CONNECT […]

put_archive与python马拉松docker应用程序?

我猜想,我想要做的是不可能的devise,但certificate我错了。 对于我们的一个后端,我们使用python marathon客户端来pipe理mesos群集上的docker容器。 我想要做的是一旦它启动,dynamic添加一个文件到docker容器。 使用普通的docker客户端,我会做这样的事情: def create_archive(file_contents, file_name): """ doc """ tarstream = io.BytesIO() with tarfile.open(fileobj=tarstream, mode='w') as tarfile_: encoded_file_contents = file_contents.encode('utf8') tarinfo = tarfile.TarInfo(file_name) tarinfo.size = len(encoded_file_contents) tarinfo.mtime = time.time() tarfile_.addfile(tarinfo, io.BytesIO(encoded_file_contents)) logger.info("[+] Successfully created tarfile {}".format(file_name)) # We're at the end of the tarstream, go back to the beginning. return tarstream.seek(0) def add_docker_archive(docker_client, […]

“docker运行你好,世界”与授权错误

我在Mac上成功安装了docker。 docker -v Docker version 1.13.1, build 092cba3. 但是当我这样做: docker run hello-world Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp 192.168.65.1:443: getsockopt: connection refused. See 'docker run –help'. 我在浏览器中粘贴了https://registry-1.docker.io/v2/ ,并得到这个错误: {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]} 我需要什么样的授权?

使用–net = host时,如何将芹菜容器连接到rabbitmq容器?

使用–net = host时,我无法将芹菜容器连接到rabbitmq容器。 我开始我的rabbitmq: docker run -d –rm –net=host –hostname=rabbitmq –name=rabbitmq -p 5672:5672 -p 15672:15672 -e RABBITMQ_DEFAULT_USER=donald -e RABBITMQ_DEFAULT_PASS=duck rabbitmq-mgnt 我的rabbitmq服务器是在DNS中定义的: nslookup amqp Server: 127.0.0.1 Address: 127.0.0.1#53 Name: amqp.service.consul Address: 10.68.32.180 我可以连接和validation凭据: curl -i -u donald:duck http://amqp:15672/api/whoami HTTP/1.1 200 OK vary: Accept-Encoding, origin Server: MochiWeb/1.1 WebMachine/1.10.0 (never breaks eye contact) Date: Mon, 27 Feb 2017 […]

将docker主机打包成OVA / OVF

我们有一个应用程序作为一堆容器在Docker主机中运行。 对于开发,我们使用docker-compose,为了运输,我们使用Replicated.com的软件/服务。 我们的客户不运行他们自己的docker主机,不想要,没有专业知识这样做。 他们需要的是一个OVA / OVF文件,可以将其放入vSphere基础架构中。 我没关系。 在那里似乎有很多很多的起动面团图像,将作为docker主机运行(boot2docker是一个例子?)。 我应该select哪一个基地? 如果我可以使用stream浪者或其他工具作为我的构build链的一部分,这将是理想的,所以我不必每次都手工重新创buildOVA。 除了通用Linux引导程序.iso以外,我可以从哪个映像开始 脚本编译?

如何引用bash中的本地主机?

我目前在Windows 10上使用Docker工具箱,并将boot2docker作为虚拟机运行。 我首先使用: docker pull bamos/openface 。 然后我运行: docker run -it -v \Users:/Users bamos/openface /bin/bash 。 现在在我的Windows C:/用户,我有两个图像img1和img2 ,我需要在容器的bash内引用。 但是,当我进入bash并inputcd Users然后ls -a ,我找不到这两张照片。 所以我的问题是,如何引用不在容器中,但在我的本地主机(Windows)上的文件?

pipe道失败,自定义泊坞窗图像

在salmantariq/node_mysql hub上有一个自定义的salmantariq/node_mysql : salmantariq/node_mysql 。 它通过nvm安装了MySQL服务器和节点。 我得到以下错误。 我相信我在这里失去了一些东西,但不知道是什么。 { bash: cannot set terminal process group (9): Not a ttybash: no job control in this shell+ umask 000+ git clone –branch="user-login-error-fix" –depth 50 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/diligensoftware/web.git $BUILD_DIR ; git reset –hard ed570209d7a4a1d7b29fe09d9dd7909ed42ed65e ; git remote set-url origin https://x-token-auth:{access_token}@bitbucket.org/diligensoftware/web.gitCloning into '/opt/atlassian/pipelines/agent/build'…HEAD is now at ed57020 configuring test+ chmod 777 […]

推Dockerfile或docker-compose到heroku

我使用docker构build了一个web应用程序,并通过构builddocker-compose文件在本地进行了testing。 现在我想把这个项目推到heroku。 我是否需要制作Dockerfile并将图像推送到heroku,或者我可以将docker-compose文件推送到heroku吗?

获取“此应用程序已经运行”,但找不到RUNNING_PIT

我有一个在AWS EB的docker上运行的应用程序。 我重build了环境,现在我正在This application is already running (Or delete /var/run file). 错误。 但是,我找不到RUNNING_PID。 我检查了根,以及/ opt / docker /。 我试过find . -name RUNNINGPID find . -name RUNNINGPID 。 我添加了行到我的conf将PID文件放在/ var / run /中,但我无法摆脱这个当前的一个,因为我找不到它! 有人可以帮忙吗? 这个东西的一个新手的位。

如何以安全的方式使用docker集装箱内的docker

我有一些Docker容器在Docker环境(CentOS虚拟机上)上运行,需要docker在里面。 所以我在容器中挂载/var/run/docker.sock 。 现在我正在创build/etc/default/docker DOCKER_OPTS="-H tcp://xx.xx.xx.xx:2376" 但现在我的问题是:哪个IP是xx.xx.xx.xx ? 它是主机的IP还是容器的IP? +这是让Docker容器使用套接字的最佳方式吗? (=在docker中使用docker)