1.1 KiB
1.1 KiB
layout | title | description | author | image | categories | comments | pic01 | pic02 | pic03 | pic04 | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
post | Portainer Agent | Connection multiple Docker Hosts in one Portainer instance | sthope |
|
true | /assets/images/portainer-agent/1.jpg | /assets/images/portainer-agent/2.jpg | /assets/images/portainer-agent/3.jpg | /assets/images/portainer-agent/4.jpg |
Portainer Edge Agent
Open `Endpoints` tab on Portainer: ``` http://Portainer_IP:9000/#!/endpoints ```
- Select
Edge Agent
. - Give it a
Name
(generally hostname of the instance you are adding). Portainer server URL
is the url of your Portainer: http://Portainer_IP:9000
CopyEDGE_ID
andEDGE_KEY
On the terminal of host you are going to add to Portainer send:
bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/install-portainer-agent)" EDGE_ID EDGE_KEY
Replace EDGE_ID
and EDGE_KEY
with ones given by Portainer