Update 'docker_portainer_stacks/portainer/install-portainer-agent'
This commit is contained in:
parent
28038dfe06
commit
721208c975
@ -1,15 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
###################################
|
# ___ _ _ _ __
|
||||||
############ by Sthope ############
|
# / __|| |_ | |_ ___ | '_ \ ___
|
||||||
###################################
|
# \__ \| _|| \ / _ \| .__// -_)
|
||||||
|
# |___/ \__||_||_|\___/|_| \___|
|
||||||
|
|
||||||
|
|
||||||
#### USAGE
|
#### USAGE
|
||||||
<<<<<<< HEAD
|
|
||||||
# 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
|
# 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
|
||||||
=======
|
|
||||||
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/raw/branch/master/docker_portainer_stacks/portainer/install-portainer-agent)" EDGE_ID EDGE_KEY
|
|
||||||
>>>>>>> ec2f9d52c1c5cdfbb0c70f0e6d62b0bd872e37e7
|
|
||||||
#
|
|
||||||
|
|
||||||
sudo docker run -d \
|
sudo docker run -d \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
@ -22,5 +19,6 @@ sudo docker run -d \
|
|||||||
-e EDGE_KEY=${2} \
|
-e EDGE_KEY=${2} \
|
||||||
-e CAP_HOST_MANAGEMENT=1 \
|
-e CAP_HOST_MANAGEMENT=1 \
|
||||||
--label=hide_container=true \
|
--label=hide_container=true \
|
||||||
|
--label=com.centurylinklabs.watchtower.enable=true \
|
||||||
--name portainer_edge_agent \
|
--name portainer_edge_agent \
|
||||||
portainer/agent
|
portainer/agent
|
Loading…
x
Reference in New Issue
Block a user