错误
代码语言:javascript复制(iptables failed: iptables --wait -t filter -A DOCKER ! -i docker0 -o docker0 -p tcp -d 172.17.0.2 --dport 4399 -j ACCEPT: iptables: No chain/target/match by that name.
(exit status 1)).
解决
重启docker
代码语言:javascript复制systemctl restart docker
部署showdoc
https://www.dqgs.fun:4399/web/
查看正在运行的容器的命令
代码语言:javascript复制pip install runlike
# 格式:runlike -p <容器名>|<容器ID>
runlike -p redis
在docker for win中使用portainer
win10 docker 局域网连接2375
需要转发端口
代码语言:javascript复制netsh interface portproxy add v4tov4 listenport=2375 connectaddress=127.0.0.1 connectport=2375 listenaddress=<192.168.101.12:宿主机id,本机ip> protocol=tcp
查看所有转发的端口
代码语言:javascript复制netsh interface portproxy show all
删除转发的端口
代码语言:javascript复制netsh interface portproxy delete v4tov4 listenaddress=<192.168.101.12:宿主机id,本机ip> listenport=2375