Update 'docker_portainer_stacks/portainer/setup-dockerapi-notls'
This commit is contained in:
parent
21a6e9a93d
commit
4b1135c928
@ -6,9 +6,7 @@
|
||||
|
||||
#### USAGE
|
||||
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/raw/branch/master/docker_portainer_stacks/portainer/setup-dockerapi-notls)"
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
|
||||
findRandomTcpPort(){
|
||||
port=$(( 100+( $(od -An -N2 -i /dev/random) )%(1023+1) ))
|
||||
@ -19,7 +17,6 @@ findRandomTcpPort(){
|
||||
echo "$port"
|
||||
}
|
||||
|
||||
|
||||
mkdir -p /etc/systemd/system/docker.service.d/
|
||||
|
||||
p=$(findRandomTcpPort)
|
||||
@ -31,11 +28,7 @@ ExecStart=
|
||||
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:$p
|
||||
EOF
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
systemctl restart docker.service
|
||||
|
||||
clear
|
||||
systemctl daemon-reload;systemctl restart docker.service;clear
|
||||
|
||||
echo "######################################################################"
|
||||
echo "############################# by Sthope ##############################"
|
||||
|
Loading…
x
Reference in New Issue
Block a user