boot2docker

Docker toolbox: Is there a way to mount other folders than from “C:\\Users” Windows?

亡梦爱人 提交于 2019-11-29 04:02:06
I installed Docker toolbox 1.8.3 using VirtualBox 5.0.6 on Windows 7. The default virtual machine created during startup of Docker Quickstart Terminal has one defined shared folder for c:\Users . Is it possible to persistently add other shared folders to this virtual machine e.g. mounting a d:\ drive on the host? The boot2docker README mentions Alternatively, Boot2Docker includes the VirtualBox Guest Additions built in for the express purpose of using VirtualBox folder sharing. The first of the following share names that exists (if any) will be automatically mounted at the location specified:

window安装docker(通过Oracle VM VirtualBox)

萝らか妹 提交于 2019-11-29 03:33:16
一、下载: 软件DockerToolbox-19.03.1.exe下载: https://github.com/docker/toolbox/releases 国内: https://get.daocloud.io/toolbox/ 最新版boot2docker.iso: https://github.com/boot2docker/boot2docker/releases 二、安装: 已经安装virtualBox和git则勾选掉 安装完,将boot2docker.iso复制到C:\Users\用户名\.docker\machine\cache 三、使用: 选择图标,启动DockerToolbox 第一次运行Docker Quickstart Terminal时会进行Docker环境的初始化,会在VirtualBox中自动创建名字为【default】的linux虚拟机,再此过程中会用到boot2docker.iso镜像文件。默认情况下,启动程序会从GitHub上下载此文件的最新版,但由于文件相对较大且速度不给力,多数情况下会下载失败,造成Docker环境无法启动,如下图: 解决方法: 其实DockerToolbox安装文件自带了boot2docker.iso镜像文件,位于安装目录下(如C:\Program Files\Docker Toolbox) ,将此文件拷至C:\Users

Move boot2docker and .docker folder in other drive

人盡茶涼 提交于 2019-11-29 02:14:42
问题 I'm new in docker. I have installed docker in windows in the D drive but the Boot2docker VM is in the user folder in the C drive. I dont have enough space in the C and the boot2docker is growing when i pull softwares from the docker hub. So I want to move the boot2docker or the .docker folder in the D drive. Is it possible ? and how can i do ? 回答1: Moving existing disk The big size for the VM machine is .vmdk or .vdi , so you just need to move the disk to Drive D instead of moving whole

OSX boot2docker hangs on “Waiting for VM and Docker daemon to start …”

点点圈 提交于 2019-11-29 00:43:36
问题 I've installed boot2docker on OSX 10.8.5 and it seems that the installation went fine, but when I try to launch boot2docker I get the following, which hangs indefinitely: $ /usr/local/bin/boot2docker up Waiting for VM and Docker daemon to start... ..........................................................................oooooooooooooooooooooooooooooo What steps should I take to debug this? I haven't been able to find any information on this particular issue. $ boot2docker version Boot2Docker

Docker mongo image 'Connection refused' from other container

大憨熊 提交于 2019-11-28 21:22:20
问题 I'm new to docker. I'm trying to create a MongoDB container and a NodeJS container. My file looks: version: '2' services: backend: image: node:5.11-onbuild ports: - "3001:3001" volumes: - .:/code working_dir: "/code" links: - mongodb mongodb: image: mongo:3.3 expose: - 27017 It should run npm install and then node . . But docker-compose up ends up with [MongoError: connect ECONNREFUSED 127.0.0.1:27017] while the command node . . I think this is because of the bind_ip = 127.0.0.1 in the file

/var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

寵の児 提交于 2019-11-28 21:21:12
I am very new to the docker when try to run docker info it gives me following error. $ docker info FATA[0000] Get http:///var/run/docker.sock/v1.17/info: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? I am using ubuntu 14.04. I followed the installation istructions mentioned on https://docs.docker.com/installation/ubuntulinux/#installing-docker-on-ubuntu But I'm still getting the error. How can I fix this? NehaG This error occurred because I didn't restart my computer after installing docker. Now the above command is

How can I use a local file on container?

爱⌒轻易说出口 提交于 2019-11-28 18:40:15
I'm trying create a container to run a program. I'm using a pre configurate image and now I need run the program. However, it's a machine learning program and I need a dataset from my computer to run. The file is too large to be copied to the container. It would be best if the program running in the container searched the dataset in a local directory of my computer, but I don't know how I can do this. Is there any way to do this reference with some docker command? Or using Dockerfile? Yes, you can do this. What you are describing is a bind mount. See https://docs.docker.com/storage/bind-mounts

Docker compose, running containers in net:host

萝らか妹 提交于 2019-11-28 17:19:05
问题 I want to spawn 3 services in the "host" net using docker-compose. Here is my docker-compose.yml file: version: '2' services: mysql: image: mysql net: "host" nginx: image: nginx net: "host" app: image: tomcat net: "host" I got the following error: $ docker-compose up [31mERROR[0m: Validation failed in file '.\docker-compose.yml', reason(s): Unsupported config option for services.app: 'net' Unsupported config option for services.mysql: 'net' Unsupported config option for services.nginx: 'net'

Can we pass ENV variables through cmd line while building a docker image through dockerfile?

泪湿孤枕 提交于 2019-11-28 16:48:23
I am working on a task that involves building a docker image with centOs as its base using a Dockerfile . One of the steps inside the dockerfile needs http_proxy and https_proxy ENV variables to be set in order to work behind the proxy. As this Dockerfile will be used by multiple teams having different proxies, I want to avoid having to edit the Dockerfile for each team. Instead I am looking for a solution which allows me to pass ENV variables at build time, e.g., sudo docker build -e http_proxy=somevalue . I'm not sure if there is already an option that provides this. Am I missing something?