how to Enable Docker Remote API?
-
Navigate to
/lib/systemd/systemin your terminal and opendocker.servicefilevi /lib/systemd/system/docker.service -
Find the line which starts with
ExecStartand adds-H=tcp://0.0.0.0:2375to make it look likeExecStart=/usr/bin/dockerd -H=fd:// -H=tcp://0.0.0.0:2375 -
Save the Modified File
- Reload the docker daemon
systemctl daemon-reload - Restart the container
sudo service docker restart