See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.jsonfile in/etc/docker:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]} -
Add
/etc/systemd/system/docker.service.d/override.conf[Service] ExecStart= ExecStart=/usr/bin/dockerd -
Reload the systemd daemon:
systemctl daemon-reload -
Restart docker:
systemctl restart docker.service
As of today, this works on ubuntu wsl thanks.
edit : quote works bizarrely, the post is from kostakoff
commented
on May 3, 2025
•