docker-machine

docker swarm init could not choose an IP address error

删除回忆录丶 提交于 2019-12-03 10:03:36
Experimenting with Docker Swarm with Docker Desktop for Mac . I tried this: docker-machine create -d virtualbox node-1 docker-machine create -d virtualbox node-2 docker-machine create -d virtualbox node-3 eval $(docker-machine env node-1) docker swarm init \ --secret my-secret \ --auto-accept worker \ --listen-addr $(docker-machine ip node-1):2377 The last command ( docker swarm init ) returns this error: Error response from daemon: could not choose an IP address to advertise since this system has multiple addresses I have no idea what's going on. Anyone have any idea how to debug? Update 2017

How to install new packages into non-root Docker Container?

爱⌒轻易说出口 提交于 2019-12-03 08:07:58
问题 I'm trying to extend a docker container for SOLR. I just want to install vim into it. But when I run the docker build it complains that I'm not root. This is the DockerFile that I'm extending: https://github.com/makuk66/docker-solr/blob/master/5.3/Dockerfile And my build file is this: FROM makuk66/docker-solr MAINTAINER OCSCommerce Team <support@ocscommerce.com> RUN apt-get update RUN apt-get --assume-yes install vim COPY home/ocscommerce /etc/solr/home Then it outputs this: 192.168.99.100

How do I create a docker machine with a specific URL using docker-machine and VirtualBox?

六眼飞鱼酱① 提交于 2019-12-03 06:15:50
I can create a Docker instance with the VirtualBox driver, but I cannot figure out how to specify the URL. Create Command: docker-machine create --driver virtualbox myBox docker-machine ls: NAME ACTIVE DRIVER STATE URL SWARM myBox * virtualbox Running tcp://192.168.99.100:2376 I want the URL to be a specific URL. How can I force the Docker instance to use a specific URL (ex: 192.168.99.113)? Details: Mac 10.10.5 using Docker Toolbox Update I tried using the --virtualbox-hostonly-cidr command to set the IP range for the docker machine; I specified a range of one IP address ("192.168.99.113/32")

How do I forward a docker-machine port to my host port on OSX?

元气小坏坏 提交于 2019-12-03 04:24:48
问题 I’m delivering a private docker container in my company and want my colleagues to be able to access in our internal network, the problem is that my guest OS is OSX and as so I can only access my application using the 192.168.99.100:3000 default ip from docker machine. How can I forward the docker-machine 3000 port to my host 80 port? 回答1: At this time Docker Machine is a virtual machine running under VirtualBox in your machine, so to expose your application port you need to map your virtual

How to use the official docker elasticsearch container?

回眸只為那壹抹淺笑 提交于 2019-12-03 03:58:37
问题 I have the following Dockerfile: FROM docker.elastic.co/elasticsearch/elasticsearch:5.4.0 RUN elasticsearch EXPOSE 80 I think the 3rd line is never reached. When I try to access the dockercontainer from my local machine through: 172.17.0.2:9300 I get nothing, what am I missing? I want to access elasticsearch from the local host machine. 回答1: I recommend using docker-compose (which makes lot of things much easier) with following configuration. Configuration (for development) Configuration

How to access a docker container running on MacOSX from another host?

▼魔方 西西 提交于 2019-12-03 02:57:59
I'm trying to get started with docker and want to run the Ubiquiti video controller . I have installed Docker Toolbox and managed to get the container to run on my Yosemite host and can access it on the same mac by going to the IP returned by docker-machine ip default . But I want to access it on other machines on the network and eventually set up port forwarding on my home router so I can access it outside my home network. As suggested in boot2docker issue 160 , using the Virtualbox GUI I was able to add a bridged network adaptor, but after restarting the VM docker-machine can no longer

Can&#039;t connect to docker from docker-compose

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I installed docker-machine 0.1.0 and docker-compose 1.1.0 on Mac OS 10.8.5. Docker-machine is running normally and able to connect by docker-machine ssh. $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM dev * virtualbox Running tcp://192.168.99.100:2376 However can't connect from docker-compose. $ docker-compose up Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running? If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. My Dockerfile and docker-compose.yml is

Network timed out while trying to connect to https://index.docker.io

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I installed Docker-Toolbox just now while following their webpage I started with Docker QuickStart Terminal and see following ## . ## ## ## == ## ## ## ## ## === /"""""""""""""""""\___/ === ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~ \______ o __/ \ \ __/ \____\_______/ docker is configured to use the default machine with IP 192.168.99.100 For help getting started, check out the docs at https://docs.docker.com bash-3.2$ But when I try to perform docker pull hello-world , this is what I see bash-3.2$ docker run hello-world Unable to find image

Managing remote docker machines from multiple development machines

♀尐吖头ヾ 提交于 2019-12-03 02:21:42
问题 Can the docker machines created from one developer workstation using docker-machine commands, be managed from another workstation. I am not looking for a solution involving docker swarm, but just docker machine. From my understanding when docker-machine creates the machine on a remote environment like AWS EC2, it creates keys and certs which are then used for TLS based communication to the machine going forward. Therefore, in theory if I copy those keys and certs to another developer machine

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