- Stop the Docker daemon if is is already running
sudo systemctl stop docker.service
- You can check the status of the service (including if it is even installed)
sudo systemctl status docker.service
- Open the service configuration file
sudo nano /lib/systemd/system/docker.service
- Find the line with 'ExecStart' and modify it as follows (saving it once complete):
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H fd://
- Reload all of the daemons:
sudo systemctl daemon-reload
- Start the service
sudo systemctl start docker.service
- Open up your portainer installation, navigate to the 'Endpoints' menu item and then enter in the IP and port for your target computer.
This blog is a knowledge dump of all the technical information floating around in my head. It deals with anything involving software, hardware, gadgets, and technology.
Feb 19, 2018
Exposing your docker daemon API via network port (and getting it into Portainer)
These instructions will be targeted to Linux installations with systemd installed. In particular, I have used an Ubuntu-flavoured distro (ElementaryOS). I presume you have already installed docker onto your machine.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thanks for contributing!! Try to keep on topic and please avoid flame wars!!