Change file /etc/default/docker
# Use DOCKER_OPTS to modify the daemon startup options.
DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4 -H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock"
Change file /lib/systemd/system/docker.service
EnvironmentFile=/etc/default/docker
ExecStart=/usr/bin/dockerd -H fd:// $DOCKER_OPTS
Run
sudo systemctl daemon-reload
sudo service docker restart
Run following to see open ports
lsof -i -P -n | grep LISTEN
If the port 2375 doesn't show up do a system reboot.
Top comments (0)