This is by far the easiest way to initialize a docker swarm, I'll continue in the next video when we actually deploy to the swarm.
As I mentioned, I ran Ubuntu, to install docker you can just:
sudo apt install docker.io
Then you can add your user to the docker group with:
sudo usermod -aG docker $USER
then you can run docker commands with your current user:
docker swarm init
then copy paste to the other nodes, and yes, it's that easy!
![](https://i.ytimg.com/vi/6IYKdiRpTi4/maxresdefault.jpg)