Docker swarm init command not working

Hello,

I am trying out a Swarm tutorial on Docker’s site: https://docs.docker.com/engine/swarm/swarm-tutorial/create-swarm/

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 172.168.101.169:2377
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.

Thanks,
Billy

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