Skip to content

Remote execution

Julian Eggers edited this page Feb 28, 2019 · 4 revisions

Enable remote execution on target host

## Create config file
mkdir -p /etc/systemd/system/docker.service.d/ && \
cat <<EOT >> /etc/systemd/system/docker.service.d/startup_options.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375
EOT

## Restart docker daemon
systemctl daemon-reload && \
systemctl reload docker.service && \
systemctl restart docker.service

Execute containers on remote hosts

You have to set set DOCKER_HOST-Property. It is recommended to do this via properties-file to keep the code untouched.

Clone this wiki locally