1.docker运行报错docker0: iptables: No chain/target/match by that nam?
启动docker服务报错
Error response from daemon: No such container: yn-userservice-30000
26126ca87430b74c3987817492cc890e72c36e2fec10d807e362a12f22365160
/usr/bin/docker-current: Error response from daemon: driver failed programming external
connectivity on endpoint yn-userservice-30000 (5d083ef51f932ac24936713ab3bc1cece9d47feabf4a916cf5da12a4fb2a122a):
(iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 30000 -j DNAT --to-
destination 172.17.0.2:30000 ! -i docker0: iptables: No chain/target/match by that name.
答:
systemctl stop docker
iptables-save > /etc/sysconfig/iptables #保存 iptables
systemctl start docker
2.docker build Unable to load the service index for source httpsapi.nuget.orgv3index.json
docker build -t test . --network=host