Via Germain Wizard
Germain Workspace > Left Menu > Wizard > Docker
Enable Docker Engine API
-
Navigate to
/lib/systemd/systemin your terminal and opendocker.servicefile$ vi /lib/systemd/system/docker.service -
Find the line which starts with ExecStart and adds -H=tcp://0.0.0.0:2375 to make it look like
ExecStart=/usr/bin/dockerd -H=fd:// -H=tcp://0.0.0.0:2375 -
Save the Modified File
-
Reload the docker daemon
$ sudo systemctl daemon-reload -
Restart the docker service
$ sudo service docker restart -
Test if it is working by using this command, if everything is fine below command should return a JSON
$ curl http://localhost:2375/images/json -
To test remotely, use the PC name or IP address of Docker Host
Run Docker commands as a non-root user
To create the docker group and add your user:
-
Create the
dockergroup.$ sudo groupadd docker -
Add your user to the
dockergroup.$ sudo usermod -aG docker $USER -
Log out and log back in so that your group membership is re-evaluated.
On Linux, you can also run the following command to activate the changes to groups:
$ newgrp docker -
Verify that you can run
dockercommands withoutsudo.$ docker ps
For more detailed information on the monitoring capabilities and customization options available for Docker in Germain, please reaching out to us. We will provide you with further guidance and assistance tailored to your Docker monitoring needs.
Component: Engine
Feature Availability: 2022.1 or later