docker-toolbox

Change Docker machine location - Windows

强颜欢笑 提交于 2019-11-28 13:57:26
问题 I am using docker toolbox on Windows 7 to run docker. (docker version 1.9.1) As it turns out the docker machine creates its VM at C:\Users\username\.docker\machine\machines\default. And as I commit the images the size of VM at this location bloats up. Since its Windows, cant afford the luxury of space on the C drive. Is there any way I can change the location of the default machine? 回答1: This is what worked perfectly for me on Windows 7: Setup the MACHINE_STORAGE_PATH environment variable as

Can I run windows containers using docker-toolbox on windows 7?

别等时光非礼了梦想. 提交于 2019-11-27 23:05:52
问题 I want to run a container with microsoft/windowsservercore. This can be done if docker server's OS is windows. I couldn't find an answer for whether it is possible using docker-toolbox in windows 7. 回答1: No, Docker Toolbox installs a VirtualBox VM in which a minimal Linux is installed to run Docker Linux containers. Running Native Windows containers requires Windows 10 professional, or Windows Server 2016. Docker for Windows allows you to toggle between "Linux" and "Windows" containers, but

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

℡╲_俬逩灬. 提交于 2019-11-27 22:13:51
问题 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? 回答1: The boot2docker README mentions Alternatively, Boot2Docker includes the VirtualBox Guest Additions built in for the express purpose of using VirtualBox folder sharing. The first

Docker daemon config file on boot2docker / docker-machine / Docker Toolbox

瘦欲@ 提交于 2019-11-27 17:36:58
Where can I find docker daemon config file on boot2docker machine? According to this topic: Dockerfile: Docker build can't download packages: centos->yum, debian/ubuntu->apt-get behind intranet I want to set '--dns' in DOCKER_OPTS , but I can't find this config file either at /etc/default or anywhere else. Inside boot2docker ( boot2docker ssh ) / docker-machine ( docker-machine ssh default ) , open or create the file /var/lib/boot2docker/profile and add the following line: EXTRA_ARGS="--dns 192.168.1.145" Also works for: EXTRA_ARGS="--insecure-registry myinternaldocker" After the change you

How to use --volume option with Docker Toolbox on Windows?

核能气质少年 提交于 2019-11-27 09:31:22
问题 How can I share a folder between my Windows files and a docker container, by mounting a volume with simple --volume command using Docker Toolbox on? I'm using "Docker Quickstart Terminal" and when I try this: winpty docker run -it --rm --volume /C/Users/myuser:/myuser ubuntu I have this error: Invalid value "C:\\Users\\myuser\\:\\myuser" for flag --volume: bad mount mode specified : \myuser See 'docker run --help'. Following this, I also tried winpty docker run -it --rm --volume "//C/Users

Docker Compose mount Windows folder

烈酒焚心 提交于 2019-11-27 02:22:18
问题 I am using Docker Toolbox in Windows and am trying to mount a Windows folder in a docker-compose.yml file like this: nginx: image: nginx:latest container_name: test_server ports: - "80:80" volumes: - /sss:/c/data/www:ro environment: - VIRTUAL_HOST=test.local My objective is to mount C:\data\www to the boot2docker VM image which is already created by Docker Toolbox and then from there to the nginx container inside of it. Unfortunately it's not working. I get a folder sss inside the boot2docker

Docker Toolbox - Localhost not working

本小妞迷上赌 提交于 2019-11-27 00:12:30
So I'm using Docker Toolbox because I don't have Hyper-V on my machine since it's not Windows 10 pro. Everything seems to work fine, but when I try to go on my browser 0.0.0.0:80 it always returns me: This site can’t be reached But when I run the command: docker container ps I get the following: 0.0.0.0:80->80/tcp meaning that this address should work. I searched across stackoverflow and github issues. Now I'm stuck. Am I missing something? Thanks, Mark EDIT: Using docker-machine ip default returns me 192.168.99.100 . I run that on port 80. I still get the same result except that the address

Docker Toolbox - Localhost not working

谁说我不能喝 提交于 2019-11-26 07:18:50
问题 So I\'m using Docker Toolbox because I don\'t have Hyper-V on my machine since it\'s not Windows 10 pro. Everything seems to work fine, but when I try to go on my browser 0.0.0.0:80 it always returns me: This site can’t be reached But when I run the command: docker container ps I get the following: 0.0.0.0:80->80/tcp meaning that this address should work. I searched across stackoverflow and github issues. Now I\'m stuck. Am I missing something? Thanks, Mark EDIT: Using docker-machine ip