boot2docker

What does the DOCKER_TLS_VERIFY and DOCKER_CERT_PATH variable do?

醉酒当歌 提交于 2019-12-03 06:16:21
I am new to Docker, using boot2docker on Windows 7. While I was trying to configure Docker build through spotify maven plugin, I was asked to set below env variables : DOCKER_HOST DOCKER_CERT_PATH DOCKER_TLS_VERIFY Configuration was successful but am not sure What does the DOCKER_TLS_VERIFY and DOCKER_CERT_PATH variables do ? As mentioned in the README : By default, boot2docker runs docker with TLS enabled . It auto-generates certificates and stores them in /home/docker/.docker inside the VM. The boot2docker up command will copy them to ~/.boot2docker/certs on the host machine once the VM has

Using ssh-agent with docker on macOS

谁都会走 提交于 2019-12-03 05:40:48
问题 I would like to use ssh-agent to forward my keys into the docker image and pull from a private github repo. I am using a slightly modified version of https://github.com/phusion/passenger-docker with boot2docker on Yosemite. ssh-add -l ...key details boot2docker up Then I use the command which I have seen in a number of places (i.e. https://gist.github.com/d11wtq/8699521): docker run --rm -t -i -v $SSH_AUTH_SOCK:/ssh-agent -e SSH_AUTH_SOCK=/ssh-agent my_image /bin/bash However it doesn't seem

Keep getting Could not read CA certificate when trying to start docker

被刻印的时光 ゝ 提交于 2019-12-03 05:29:31
I am attempting to migrate from boot2docker to docker-machine. I followed the directions here to install docker but I keep getting the following message: Could not read CA certificate "/Users/<useraccountfolder>/.boot2docker/certs/boot2docker-vm/ca.pem": open /Users/<useraccountfolder>/.boot2docker/certs/boot2docker-vm/ca.pem: no such file or directory when I run most any docker command. Naruto Sempai I found my solution here I needed to update my .bash_profile to look like: export DOCKER_HOST=tcp://192.168.99.100:2376 export DOCKER_MACHINE_NAME=default export DOCKER_TLS_VERIFY=1 export DOCKER

Using docker during the development workflow

六眼飞鱼酱① 提交于 2019-12-03 05:14:01
问题 I'm using boot2docker on OS X and cloned the following repo: https://github.com/enokd/docker-node-hello It basically has a Dockerfile and a very simple express app that prints hello world. Everything runs great when I build and run the image, but of course if I make any changes to index.js on my Mac none of that gets reflected in my running image. I can't seem to find any references on how I'd setup docker so that I can run it in my development environment to automatically pick up my source

How to transfer files between local machine and minikube?

半世苍凉 提交于 2019-12-03 04:46:18
问题 I am using OS Ubuntu 16.0.4 and i installed minikube on it. I need to copy some files to minikube, so how can i do that? I tried next command but it asked me on password and i don't know it scp /media/myuser/sourceFolder docker@192.168.99.100:/home/docker/destiationFolder Note: minikube IP is 192.168.99.100 , and i used docker as default user for minikube but actually i don't know if it correct ot not. So what is the default username and password for minikube and how can i copy files from my

Boot2Docker: Connect to container over LAN

£可爱£侵袭症+ 提交于 2019-12-03 03:48:38
I'm using Boot2Docker 1.3.0 on my Mac and I'm pretty happy so far using it. But now I'd like to connect to a http container (exposes port 8080) not from my local machine but from another machine in my local network? If I'm doing it locally I just use http://192.168.59.103:8080 so I'm using the ip address of the docker host. This can't work for other machines in my local network but using the ip address of my mac does not work either. I'm pretty sure there are some solutions for this problem but I can't find any. It can't be that hard right? What I want is to make a request to http://[IP

Can not pull docker image from private repo when using Minikube

☆樱花仙子☆ 提交于 2019-12-03 02:57:54
I am attempting to use Minikube for local kubernetes development. I have set up my docker environment to use the docker daemon running in the provided Minikube VM (boot2docker) as suggested: eval $(minikube docker-env) It sets up these environment variables: export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://192.168.99.100:2376" export DOCKER_CERT_PATH="/home/jasonwhite/.minikube/certs" When I attempt to pull an image from our private docker repository: docker pull oururl.com:5000/myimage:v1 I get this error: Error response from daemon: Get https://oururl.com:5000/v1/_ping: x509:

docker-machine: no machine name, no “default” exists

谁都会走 提交于 2019-12-03 02:03:07
I downloaded and installed Docker for Windows 1.12.1 which in turn installed the docker-machine and docker-compose. I did not install "Docker Toolbox" since its a duplicate of what was installed and my system meets the requirements . Everything seems to work fine except for docker-machine, I'm running through a tutorial and when I run various docker-machine commands like "ip" or "env" I get the following message. Error: No machine name(s) specified and no "default" machine exists. So when I do a "docker-machine ls" there is nothing in the list even though I do have a Hyper-V docker machine

docker-machine boot2docker root password

青春壹個敷衍的年華 提交于 2019-12-03 01:21:08
问题 Haven't found an answer anywhere... I created a VM (boot2docker) using docker-machine. I need to edit some files using root. What is the root password in boot2docker? 回答1: If you only have a single docker machine, you simply do: $ docker-machine ssh If you have multiple machines, you need to find your "machine name" first: $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS default * virtualbox Running tcp://192.168.99.101:2376 v1.10.2 From the above, you can see that default

Boot2docker/Windows: can't run bash on Ubuntu container

荒凉一梦 提交于 2019-12-03 00:35:50
I'm working through "The Docker Book", am on chapter 3, installing and running an Ubuntu container. I'm on Windows 7.1, using Boot2Docker. Here's what happens when I try to run it (this is the second attempt, so it already has a local copy of the image): $ docker run -i -t ubuntu /bin/bash exec: "C:/Program Files (x86)/Git/bin/bash": stat C:/Program Files (x86)/Git/bin/bash: no such file or directory FATA[0000] Error response from daemon: Cannot start container 5e985b0b101bb9584ea3e40355089a54d1fba29655d5a1e0900c9b32c4f7e4c4: [8] System error: exec: "C:/Program Files (x86)/Git/bin/bash": stat