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