Docker Community Forums

Share and learn in the Docker community.

Swarm master and node without virtualbox or hypervisor possible?


(knnleow) #1

swarm tutorial always use virtualbox for the master and node configuration.
do not want to use hypervisor. will like to know how about to create master and node directly on ubuntu OS.


(Jeff Anderson) #2

You can manually start a swarm master on an existing docker daemon. The basic idea is to first create a token:

docker run --rm swarm create

and then launch the master using that token:

docker run -d -p 2376:2375 swarm manage token://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

You then have a swarm master running. (port 2376 without TLS).

More details are here: https://docs.docker.com/swarm/install-manual/