Installing Docker and Portainer to use With the Edge Agent
Use the following commands to setup Docker and Portainer to be used with the Edge Agent. This will allow you to connect all of your docker hosts to one Portainer host.
First install Docker
sudo apt install docker.io
sudo systemctl enable docker
sudo systemctl start docker
sudo systemctl status docker
Now install Portainer with both ports 9000 and 8000. The Edge Agent uses port 8000 so this is a must.
docker run -d \
--name="portainer" \
--restart on-failure \
-p 9000:9000 \
-p 8000:8000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:latest
Refer to this video for connecting Docker hosts to Portainer.