Skip to content

Instantly share code, notes, and snippets.

@waleedsamy
Last active December 20, 2015 13:17
Show Gist options
  • Select an option

  • Save waleedsamy/54a78d60d11e869afd40 to your computer and use it in GitHub Desktop.

Select an option

Save waleedsamy/54a78d60d11e869afd40 to your computer and use it in GitHub Desktop.
docker cluster
docker --version
# Docker version 1.9.1, build a34a1d5
docker-machine --version
# docker-machine version 0.5.4, build 6643d0e

docker run swarm create
# $TOKEN
docker-machine create \
        -d virtualbox \
        --swarm \
        --swarm-master \
        --swarm-discovery token://$TOKEN \
        swarm-master

docker-machine create \
      -d virtualbox \
      --swarm \
      --swarm-discovery token://$TOKEN \
      swarm-agent-00

docker-machine create \
      -d virtualbox \
      --swarm \
      --swarm-discovery token://$TOKEN \
      swarm-agent-01
      
docker run hello-world      

notes: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment