Swarm enabling issue

I have been assigned the issue - Documentation for deploying Sync Endpoint without Docker · Issue #180 · odk-x/tool-suite-X · GitHub

I have downloaded docker but I’m facing an issue with enabling swarm.
I have followed the following steps as in this article - In Detail about Docker Swarm. Docker Swarm is a popular Orchestration… | by Tasnuva Zaman | HackerNoon.com | Medium

getting error at this step:
initialize docker swarm on manager1
2. $ docker swarm init --advertise-addr manager1_ip_address

error: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/swarm/init: dial unix /var/run/docker.sock: connect: permission denied

How do I move ahead? And also I want to confirm if downloading docker and enabling are only the first steps to get started right?

1 Like

It’s solved! I was not giving the ip address of the manger – "docker swarm init --advertise-addr 192.168.99.100:2376 "

2 Likes