Exposing Docker to portainer remotely

See this: https://docs.docker.com/engine/daemon/remote-access/

Configuring remote access with systemd unit file Use the command sudo systemctl edit docker.service to open an override file for docker.service in a text editor. Add or modify the following lines, substituting your own values. [Service] ExecStart= ExecStart=/usr/bin/dockerd -H fd:// -H tcp://127.0.0.1:2375 Save the file. Reload the systemctl configuration. sudo systemctl daemon-reload Restart Docker. sudo systemctl restart docker.service Verify that the change has gone through. sudo netstat -lntp | grep dockerd tcp 0 0 127.0.0.1:2375 0.0.0.0:* LISTEN 3758/dockerd Then in portainer, connect using docker-api

Comments

Popular posts from this blog

Set manual ip via command line

Expanding filesystem on ubuntu