Docker swarm init command not working


I am trying out a Swarm tutorial on Docker’s site:

I’m running Docker Engine on Ubuntu 16.04.
I completed the tutorial setup steps and getting the following message after trying to create a swarm:

root@docker1:~# docker swarm init --listen-addr
docker: ‘swarm’ is not a docker command.
See ‘docker --help’.

After listing out ‘docker --help’ it seems swarm it not listed as an available command.

Any help would be appreciated.


You most likely have a version older than the 1.12.0-rc. Uninstalling Docker and installing from,, or from source should allow you to use the new stuff.