[docker] Docker Remote API Port open

How do I enable the remote API for dockerd


Test Docker version

ubuntu 16.04
18.01.0-ce

Create or Edit overrride.conf file 

# /etc/systemd/system/docker.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376

 

Reload the unit files and Restart the docker daemon with new startup options

sudo systemctl daemon-reload
sudo systemctl restart docker.service

글의 문제가 있다면 댓글을 달아 주세요.

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.