Tag: 船坞

无法在Docker上访问Centos sshd

我读了一篇文章,说SSH守护进程服务 。 但是我想在Centos6.4上运行。 所以我从官方的centos映像安装了几乎相同的构造。 然后我连接到centos sshd服务器,但连接立即closures。 这是消息。 ssh root@localhost -p 49164 The authenticity of host '[localhost]:49164 ([127.0.0.1]:49164)' can't be established. RSA key fingerprint is 88:71:89:e5:30:91:78:5c:bf:cb:88:c2:5b:81:1a:b5. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[localhost]:49164' (RSA) to the list of known hosts. root@localhost's password: Connection to localhost closed. 为什么我无法连接centos sshd服务器?

将Docker_Opts设置为centos

我需要设置docker在运行amazon linux(centos)的主机上侦听tcp://0.0.0.0/4243。 我看到的所有文档都告诉我运行以下命令 echo DOCKER_OPTS="-H=tcp://127.0.0.1:4243" >> /etc/default/docker 哪个会将正确的docker_opts写入/ etc / default / docker。 我已经这样做了,但是当我重新启动泊坞窗它不听127.0.0.1 我可以通过input正确的运行docker sudo /usr/bin/docker -H tcp://0.0.0.0:4243 -d & 这工作,但我希望默认选项在tcp://0.0.0.0:4243监听,而不必每次指定它。 看起来,docker是完全忽略我的/ etc / default / docker文件,所以设置被忽略。 我也尝试将文件写入/etc/default/docker.io和/ etc / default / docker-io(实际上并不期望发生太多事情) 我需要能够启动docker service docker start 否则会导致我当前的部署剧本出现问题。 任何想法,我可以做DOCKER_OPTS设置,而不是每次我重新启动docker时,

依赖于平台的Docker镜像 – 如何?

我已经在Raspberry Pi上安装了Docker,但是通常我在MacBook Pro上使用OS X。 所以,因为第一个是基于ARM的,而后者是基于X86的,所以在Docker镜像方面我有一个问题:它们不兼容。 有没有一种方法可以在OS X上使用Dockerfile来构buildDocker镜像,以便在ARM平台上运行?

无法通过API返回Docker存储库映像列表

在https://docs.docker.com/v1.7/reference/api/docker-io_api/#list-library-repository-images上的文档后,我有一些问题,如果图像返回到几个存储库列表。 不知道是否有缺失,或有任何问题? 这个例子工作,返回一个校验和和ID对象的数组: https : //index.docker.io/v1/repositories/library/ubuntu/images 但https://index.docker.io/v1/repositories/codacy/codacy-pylint/images返回一个空数组 也许回购需要一些文件的信息?

Docker数据量为SBT依赖关系

我正在使用Docker进行Scala项目的持续集成。 在容器内部,我正在构build项目并创build一个“sbt dist”分布。 这需要很长的时间来拉下所有的依赖关系,我想使用这里提到的docker数据量: http : //docs.docker.io/en/latest/use/working_with_volumes/ 但是,我不明白我怎样才能让SBT把jar文件放到卷中,或者SBT怎么知道如何从这个卷中读取它们。

如何从中恢复

在CentOS 6.6上运行Docker 1.3.2。 我怎样才能从这个错误状态恢复? 重新启动Docker没有帮助 docker run -p 8888:6543 zopyx/pp.server Unable to find image 'zopyx/pp.server' locally Pulling repository zopyx/pp.server e64a47ccffa6: Error pulling image (latest) from zopyx/pp.server, Driver devicemapper failed to create image rootfs 39339148edaf62e7572fc761b22a06a1b6320117360de99169150300f798e68f: device 39339148edaf62e7572fc761b22a06a1b6320117360de99169150300f798e68f already exists 0117360de99169150300f798e68f already exists fe95bf7d5f50: Download complete 9a4594fe74ea: Download complete 8c4b1edcceea: Download complete ed5a78b7b42b: Download complete f05fd44c10df: Download […]

Docker:ping:未知的主机yahoo.com

这是我尝试的所有事情: 冉docker达蒙与-dns: sudo docker -d -dns 8.8.8.8 确保IP转发已启用: $ sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 1 名称服务器到位: $ docker -dns '8.8.8.8' run centos:6.4 ping -c 3 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. — 8.8.8.8 ping statistics — 3 packets transmitted, 0 received, 100% packet loss, time 12000ms 欣赏任何build议。

CentOS上的Docker运行时报告“无法将sys安装为只读”

我刚刚开始使用Docker,并试图根据这个官方文档在Docker上安装CentOS 6.5(在VMware Player 6中)。 所有的事情都会直到我尝试启动一个容器。 $ sudo docker run -i -t centos /bin/bash 2014/06/19 10:16:36 unable to remount sys readonly: unable to mount sys as readonly max retries reached 其他信息如下所示。 $ uname -r 2.6.32-431.el6.x86_64 $ cat /etc/redhat-release CentOS release 6.5 (Final) $ sudo docker version Client version: 1.0.0 Client API version: 1.12 Go version (client): […]