Tag: docker machine

Make Docker machine very fast

I’m using Docker on Mac with the docker toolbox which use Virtual box. I love docker and I think this is the future, but it’s kind of slow using VM. My question is: Is there a way to accelerate the process with VM? I heard about dinghy: https://github.com/codekitchen/dinghy, which use sharing with NFS. It sounds […]

docker compose with swarm and spring boot, cannot connect to database on different node

This is my docker-compose.yml file: version: ‘2’ services: app: image: pedramrn/webapp:0.1.4 expose: – 8080 networks: – main working_dir: /src restart: never depends_on: – db-postgresql links: – db-postgresql lb: image: dockercloud/haproxy:1.5 depends_on: – app volumes: – /var/run/docker.sock:/var/run/docker.sock ports: – 80:80 networks: – main environment: – ADDITIONAL_SERVICES=springbootdockertemplate:app db-postgresql: image: postgres:9.5 ports: – “5432:5432” volumes: – data-postgresql:/var/lib/postgresql/data networks: […]

docker works only in the Quickstart Docker Terminal

I have Windows 10 64 bit and when I use docker on the Quickstart Docker Terminal all works, but when I use it on Node.js command prompt or on the Windows Command Prompt docker doesn’t work because it doesn’t find an IP. For example when I write “docker-machine ls” on the Quickstart Docker Terminal the […]

Mac Docker Machine ZSH shell set env variable not applying

I am running Docker Machine on Mac. docker-machine version 0.6.0, build e27fb87 In my shell I have done export DOCKER_HOST=tcp://docker.local:2375 export DOCKER_TLS_VERIFY=0 Restarted the machine When I do docker-machine env These do not seem to have been set. I am using the ZSH shell, could this be an issue? docker-machine env export DOCKER_TLS_VERIFY=”1″ export DOCKER_HOST=”tcp://″ […]

Deploying jhipster-console to different remote docker machines

I’ve looked into deploying jhispter-console to different remote docker machines and wanted to clarify what’s the best approach for that. Disclaimer: my experiences with docker, docker-compose and docker-machine are quite limited and therefore I’m very thankful for jhispter-console and any help you can provide me. This is what I have figured out so far. Don’t […]

How can I boot a swarm of 50 machines with docker-machine?

I need to boot a bunch of ec2 instances (could be virtualbox instances, doesn’t matter) as a swarm. docker-machine seems to only work for doing one at a time, and that would take hours to boot 50 machines. I would like to boot the swarm master, and then in parallel boot the 49 swarm workers. […]

docker swarm 1.1.3: No such image after pulling from public repo, and trying to tag

Working from my Mac, fresh installed Docker Toolbox. Steps to reproduce: docker-machine create -d virtualbox –virtualbox-memory 700 –swarm –swarm-master –swarm-discovery consul:// swarm-master docker-machine create -d virtualbox –virtualbox-memory 700 –swarm –swarm-discovery consul:// node-1 finished without problems eval $(docker-machine env –swarm swarm-master) docker info now shows healthy nodes: Containers: 3 Running: 3 Paused: 0 Stopped: 0 Images: […]

How to mount host directory in docker container using remote api

Using the docker remote api. How can i mount a local directory from the machine that’s making the request to the the machine that’s running docker. Can someone show me an example request to “POST /containers/create” route that mounts a local directory.

How I can create docker-machine from Command-Line on Docker for Mac without VirtualBox?

I using docker for mac (not docker toolbox) I know that I don’t have to create docker-machine manually. But I want to create Docker Machine from Command-Line without virtualbox. I want to use xhyve based VM instead of VirtualBox on Docker. Is there a way to create it from Command-Line? Edit: The following is output […]

docker-machine:Error with pre-create check: “exit status 126”

When I’m type the code sudo docker-machine create –driver virtualbox default to create a new virtual machine. It can not worked. Here is the info: xxxMacBook-Pro:~ xxx$ docker –version Docker version 1.12.0, build 8eab29e xxxMacBook-Pro:~ xxx$ docker-machine –version docker-machine version 0.8.0, build b85aac1 xxxMacBook-Pro:~ xxx$ sudo docker-machine create –driver virtualbox default Running pre-create checks… Error […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.