Update 'docker_portainer_stacks/portainer/setup-dockerapi-notls'
This commit is contained in:
parent
79de6df9f4
commit
21a6e9a93d
@ -8,6 +8,8 @@
|
|||||||
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/raw/branch/master/docker_portainer_stacks/portainer/setup-dockerapi-notls)"
|
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/raw/branch/master/docker_portainer_stacks/portainer/setup-dockerapi-notls)"
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
findRandomTcpPort(){
|
findRandomTcpPort(){
|
||||||
port=$(( 100+( $(od -An -N2 -i /dev/random) )%(1023+1) ))
|
port=$(( 100+( $(od -An -N2 -i /dev/random) )%(1023+1) ))
|
||||||
while :
|
while :
|
||||||
@ -29,9 +31,13 @@ ExecStart=
|
|||||||
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:$p
|
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:$p
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
# systemctl restart docker.service
|
systemctl restart docker.service
|
||||||
|
|
||||||
|
clear
|
||||||
|
|
||||||
|
echo "######################################################################"
|
||||||
|
echo "############################# by Sthope ##############################"
|
||||||
|
echo "######################################################################"
|
||||||
echo "You can now connect Portainer to this host at port: $p"
|
echo "You can now connect Portainer to this host at port: $p"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user