How to Add Docker Endpoint to Portainer⚓
Summary⚓
This article will explain how to add a new Docker endpoint to Portainer.
How-To⚓
- SSH into the DockSTARTer VM
ssh docker@192.168.1.98- Escalate privileges to become Root
- sudo -i
- Modify the dockerd.json file located in the following directory:
- cd /var/packages/Docker/etc/dockerd.json
- Add the following line after the initial bracket:
- “hosts” : [ “tcp://diskstation.davelevine.io:2375”, “unix:///var/run/docker.sock” ],
- The end result should look like the following:
{ tcp://diskstation.davelevine.io:2375 “registry-mirrors” : [] }
Important
VI Editor must be used for this.
- Restart Docker with the following command:
- synoservice -restart pkgctl-Docker
- Wait for the command to finish, which will indicate Docker has been reloaded successfully.
- Navigate to Portainer
- https://portainer.davelevine.io
- Select Endpoints
- Add Endpoint
- Enter the Endpoint URL
- diskstation.davelevine.io:2375
- Note: Do not use TLS as the connection will fail.
- Update Endpoint
- Navigate to Home and refresh the Endpoints.
- The Endpoint you just created will now show a status of Up to indicate a successful connection.