docker-machine

How to use “Docker Quickstart Terminal” to start another docker-machine?

主宰稳场 提交于 2019-12-19 02:59:19
问题 On my mac, when I start docker by running "Docker quickstart terminal", it will start the default docker machine. I see in the start.sh of the docker quickstart terminal is: #!/bin/bash VM=default DOCKER_MACHINE=/usr/local/bin/docker-machine VBOXMANAGE=/Applications/VirtualBox.app/Contents/MacOS/VBoxManage BLUE='\033[0;34m' GREEN='\033[0;32m' NC='\033[0m' ... more How can I start another docker machine without modifying this shell file? 回答1: You simply can create a new docker machine: docker

Does docker-machine can only mount /c/Users on windows? [closed]

↘锁芯ラ 提交于 2019-12-17 20:43:27
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . But I want to mount /d because I like to put my projects on /d. 回答1: docker-machine uses a boot2docker.iso VM image, based on TinyCore The original boot2docker project mentioned that you can mount other folders with, at runtime: mount -t vboxsf -o uid=1000,gid=50 your-other-share-name /some/mount

nodejs app doesn't connect to localhost when running within a docker container

浪尽此生 提交于 2019-12-17 20:42:26
问题 My environment: Ubunut 17.04 LTS npm --version: 5.6.0 nodejs --version: 4.7.2 angular cli version: 1.6.4 docker-compose file: version: '3' services: my-app: build: context: . dockerfile: Dockerfile restart: unless-stopped volumes: - .:/usr/src/app ports: - "4200:4200" I commented out the EXPOSE 4200 in dockerfile because I'm already mounting it from docker-compose.yml file, is that NOT ok, should I expose in dockerfile and mount in docker-compose? Running npm start on command line launches

docker-machine create node without tls verification

流过昼夜 提交于 2019-12-17 15:42:18
问题 When I create a node with docker-machine docker-machine create -d virtualbox node1 it is created with tls verification enabled for docker deamon which made things a bit more of a hassle than normal for swarm. I want to create a node with docker-machine without tls verification for testing purpose. I tried with: docker-machine create -d virtualbox --engine-tls false node1 and docker-machine create -d virtualbox --engine-tls-verify false node1 and docker-machine create -d virtualbox --engine

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

爱⌒轻易说出口 提交于 2019-12-17 15:34:15
问题 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. 回答1: 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="-

MySQL databases are gone when the docker container is shutdown

痞子三分冷 提交于 2019-12-13 21:27:41
问题 I am new to docker world. I want to install some of the software packages into docker image. So I have taken Ubuntu:14.04 docker image and installed MySQL server there. Then did some works with it. Once I exit from docker image and commit it. But once I start docker container, databases which was created were gone. What would be the reason for this? 回答1: If you start your mysql database with docker run ... , it creates each time a new and fresh container with it. You can find your old one in

Docker build Input/Output error

主宰稳场 提交于 2019-12-13 01:43:08
问题 I am quite new to docker, so I am sure i have made some silly mistake. I am trying to use docker to set up an environment with my required libraries and dependencies installed for c++. However, I can't seem to get the VM built. I am running on OSX Yosemite, and my installation process was as follows: $ brew cask install virtualbox $ brew install docker-machine $ docker-machine create --driver virtualbox default $ eval "$(docker-machine env default)" I have been able to successfully run a few

How to connect to docker container from localhost

不想你离开。 提交于 2019-12-12 19:59:44
问题 I created a docker container which is running 2 java processes - one of the processes is listening on port 4444 and should have access from browser hitting the following URL: http://{host}:4444/grid/console How do I hit this URL from my browser on the host - connect to the container on port 4444? This is the response from docker inspect: [ { "Id": "3bef855324d8c78fcd3a7ac4e52d1641437f221ebe64af5651641d776cfa1bde", "Created": "2018-02-22T14:54:37.025854258Z", "Path": "/bin/bash", "Args": [],

Is there a way to add a hostname to an EXISTING docker container?

风格不统一 提交于 2019-12-12 07:24:40
问题 I have some containers that communicate via their IP from the network docker. I can use the option -h or --hostname when running a new container but I want to set the hostname for existing container. Is it possible? 回答1: One way is to create network and add different container in this network. When adding container in the network, you can use the --alias option of docker network . Like this: Create a network: docker network create <my-network-name> Add containers in the network: docker

DOCKER for Windows - Open cmd executing docker machine env

扶醉桌前 提交于 2019-12-12 03:37:06
问题 I'm using Docker For Windows ( not Dokcer toolbox ) and it is running with HyperV. So, every time I open a new CMD, I need to run "docker-machine env" and define variables for shell following the command response : REM Run this command to configure your shell: REM @FOR /f "tokens=*" %i IN ('docker-machine env') DO @%i Could i create a shortcut for open CMD executing this commands. Obs. I wouldn´t like to install a plugin or app for better command shell.. If anybody has a suggestions, Thanks!