Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Docker

Docker is a utility to pack, ship and run any application as a lightweight container.

Guides
Reference

局域网访问

开启远程

vi /lib/systemd/system/docker.service

修改配置

[Service]
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock

重启docker

systemctl daemon-reload
systemctl restart docker

firewall-cmd 开启端口

firewall-cmd --zone=public --add-port=2375/tcp --permanent