docker-compose failed to start a container

docker-compose failed to start a container

Docker-compose up -d reports an error:

[root@localhost services]# docker-compose up -d
[+] Running 1/2
 ⠿ Container grafana            Running                                                                                                                                                0.0s
 ⠙ Container test-performance  Starting                                                                                                                                               0.1s
Error response from daemon: driver failed programming external connectivity on endpoint test-performance (f4452da82baa0cd04076fa6eb203bc1d191c9625f217aeb29833abaaac3b42d8):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 38073 -j DNAT --to-destination 10.12.0.8:6278 ! -i br-427df8486c7a: iptables: No chain/target/match by that name.
 (exit status 1))

Solution:
Restart the docker service

systemctl restart docker

Guess you like

Origin blog.csdn.net/weixin_42492572/article/details/130492107