You can use this docker image to test Machine and Swarm.
Run these commands as root:
$ alias machine="docker run --privileged -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /root/.docker:/root/.docker --rm \
emilevauge/docker-cluster machine"
$ alias swarm="docker run --privileged -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /root/.docker:/root/.docker --rm \
emilevauge/docker-cluster swarm"
You now have swarm and machine using docker into docker!
$ machine create -d google --google-project YOUR_PROJECT test
$ machine ls
NAME ACTIVE DRIVER STATE URL
test google Running tcp://1.2.3.4:2376
$ docker $(machine config test) ps
$ swarm create
5b6dd17590968970d15c91115fa34je9
Content type
Image
Digest
sha256:ed4c5abec…
Size
139.4 MB
Last updated
almost 11 years ago
docker pull emilevauge/docker-cluster