23 lines
648 B
Bash
23 lines
648 B
Bash
#!/bin/bash
|
|
###################################
|
|
############ by Sthope ############
|
|
###################################
|
|
|
|
#### USAGE
|
|
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/raw/branch/master/docker_portainer_stacks/portainer/setup-dockerapi-notls)"
|
|
#
|
|
|
|
mkdir -p /etc/systemd/system/docker.service.d/
|
|
|
|
cat << EOF > /etc/systemd/system/docker.service.d/startup_options.conf
|
|
# /etc/systemd/system/docker.service.d/override.conf
|
|
[Service]
|
|
ExecStart=
|
|
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376
|
|
EOF
|
|
|
|
systemctl daemon-reload
|
|
|
|
systemctl restart docker.service
|
|
|
|
echo "You can now connect Portainer to this host." |