Docker: Enable API

From wiki.jacobjohns.com
Revision as of 14:12, 24 June 2023 by jwiki>jjohns (Created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Enable Docker API

  1. Edit the docker.service
    • sudo systemctl edit docker.service
    • Add: [Service] ExecStart= ExecStart=/usr/bin/dockerd
  2. Create /etc/docker/daemon.json with the below {   "hosts": ["unix:///var/run/docker.sock", "tcp://<HostIP>:2375"] }
  3. Restart docker
    • systemctl restart docker