Tag: boot2docker

无法创builddocker虚拟机

我以前使用boot2docker,一切正常。 现在,当我升级到使用Docker Toolbox时,我无法创build新的虚拟机。 我甚至无法导入与boot2docker一起使用的虚拟机。 尝试创build新机器时出现此错误: C:\Program Files\Docker Toolbox\kitematic\resources\resources\docker-machine.exe -D create -d virtualbox –virtualbox-memory 2048 default returned non zero exit code. Stderr: Converting from raw image file="stdin" to file="C:\Users\disk.vmdk"… Creating dynamic image with size 20971520000 bytes (20000MB)… Error creating machine: exit status 1 You will want to check the provider to make sure the machine and […]

我如何从当前系统创build一个docker镜像?

我想在SSH进入虚拟机并下载/configuration项目后创build一个Docker镜像。 由于项目的性质,我不能在configuration文件中这样做,它必须通过将当前系统“冻结”为图像来完成。 这可能吗?

Docker:来自守护进程的错误响应:rpc错误:code = 2 desc =“oci运行时错误:exec格式错误”

我写了下面的docker文件 FROM cloudera/quickstart MAINTAINER abhishek "http://www.foobar.com" ADD ./SparkIntegrationTestsAssembly.jar / ADD ./entrypoint.sh / ADD ./twitter.avro / EXPOSE 8020 50070 50010 50020 50075 8030 8031 8032 8033 8088 8040 8042 10020 19888 11000 8888 18080 7077 RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] 我使用命令build立了我的图像 docker build –tag foobar:auto . 这个命令的输出是 Sending build context to Docker daemon 93.1 MB […]

获取IP地址出错:运行SSH命令出错了! 命令

在启动dockerterminal下面的错误填充,如何解决这个错误获取IP地址:运行SSH命令出了问题! command : ip addr show dev eth1 err : exit status 255 output : docker is configured to use the default machine with IP For help getting started, check out the docs at https://docs.docker.com

如何将特定的IP分配给容器并使其可以在VM主机之外访问?

我希望我的两个容器在VM主机之外的独立的特定IP地址( 192.168.0.227 )上可用,无需端口映射。 这意味着我希望通过使用其IP来直接访问容器上的任何端口。 我已经在虚拟机主机之外的networking中运行了192.168.0.1-192.168.0.221范围内的机器。 Docker 1.10.0现在可以实现吗?如果是这样,怎么样? 我在OS X 10.11中使用docker version 1.10.0, build 590d5108和docker version 1.10.0, build 590d5108 docker-machine version 0.6.0, build e27fb87 ,使用boot2docker / VirtualBox驱动程序docker-machine version 0.6.0, build e27fb87 。 我一直试图弄清楚这一点,没有运气,我已经阅读了以下问题和答案: 如何分配静态公共IP到docker集装箱 如何在不使用端口映射的情况下将Docker容器的ip和端口暴露给外部docker主机? 我怎样才能让我的networking上的其他机器访问我的Docker容器(使用端口映射)?

docker私人registry – 方法不允许405

我正在尝试为Docker创build私有registry,而且我依赖于在Docker站点上给出的指示信息 。 我有一个单独的Linux中,这个registry安装的地方,然后我试图从本地(docker工具箱的OSX框)推我的图像。 我一直从registry服务器获得405。 docker工人我很新。 我希望默认的基本configuration工作没有太多的麻烦。 组态 最新的docker工具箱。 最新的registry安装 我只更改TLSconfiguration以通过http发布请求。 错误 The push refers to a repository [192.168.1.98:5000/complete] (len: 1) Sending image list Error: Status 405 trying to push repository complete: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>405 Method Not Allowed</title>\n</head><body>\n<h1>Method Not Allowed</h1>\n<p>The requested method PUT is not allowed for the URL /v1/repositories/complete/.</p>\n</body></html>\n"

Windows访客虚拟机中的Docker

我使用Debian Jessie作为VirtualBox主机。 我有一个Windows 7虚拟机guest,我用于开发目的。 我想安装docker。 为了安装Docker for Windows,我需要Boot2docker.exe。 Boot2docker本身是一个VirtualBox虚拟机。 它需要启用VT-x。 这似乎并不奏效。 VirtualBox错误信息: VT-x is not available (VERR_VMX_NO_VMX) E_FAIL (0x80004005) Console IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}

如何在没有此错误的情况下运行`gcloud preview app setup-managed-vms`?

当我运行gcloud –verbosity debug preview app setup-managed-vms我得到以下错误我不知道如何解决google.appengine.tools.docker.containers.ImageError: Image with tag localhost:49153/google/appengine-java was not found 我在pastebin上发布了详细的堆栈跟踪 。 我正在运行Google Cloud SDK 0.9.40和docker 1.3.2。 我有一个与0.9.39不同的问题,卸载并重新安装了一切,但v0.9.40似乎还没有做到这一点。 我怎么能通过这个?

docker工具库名称组件必须匹配

我正在试图使用这个插件来构build我的图像: https : //github.com/spotify/docker-maven-plugin#use-a-dockerfile 当我运行mvn clean package docker:build 我得到这个错误: [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.2.3:build (defa ult-cli) on project demo: Exception caught: Request error: POST https://192.168. 99.100:2376/v1.12/build?t=DevOpsClient: 500: HTTP 500 Internal Server Error -> [ Help 1] 当我检查docker守护进程日志时,我看到: Handler for POST /build returned error: repository name component must match \"[a-z0-9]+(?:[._-][a-z0-9]+)*\"" statusCode=500 以下是命名约定的文档: https : //docs.docker.com/registry/spec/api/ […]

docker-container中的inotifywait不会注册更改

我有一个脚本运行在inotifywait -container中,通过inotifywait监听一个目录中的变化。 目录通过docker -v挂载到主机系统。 出于某种原因,当这个目录内的文件被改变时,inotifywait不会被触发。 这是有问题的脚本行 inotifywait -e create -e modify -e delete -e move /etc/nginx/sites-enabled 容器是这样启动的(通过图) web: build: . ports: – "80:80" volumes: – ./conf:/etc/nginx/sites-enabled 当我通过fig up开始设置fig up ,脚本被执行,但是安装音量的变化不会触发inotify-barrier。