赞
踩
-- 在/etc/systemd/system/下创建docker-tcp.socket 文件
vim /etc/systemd/system/docker-tcp.socket
[Unit]
Description=Docker Socket for the API
[Socket]
# ListenStream=127.0.0.1:2375
ListenStream=2375
BindIPv6Only=both
Service=docker.service
[Install]
WantedBy=sockets.target
systemctl daemon-reload
systemctl enable docker-tcp.socket
systemctl stop docker
systemctl start docker-tcp.socket
systemctl start docker
Build,Execution,Deployment - Docker
TCP socket
选项,设置 Engine API URL
地址为虚拟机地址,端口号为 2375,端口号不能变,docker 默认为2375,可以在虚拟机配置文件修改Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。