LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Containers (https://www.linuxquestions.org/questions/linux-containers-122/)
-   -   ERROR: Cannot start service webserver: driver failed programming external connectivity on endpoint ... (https://www.linuxquestions.org/questions/linux-containers-122/error-cannot-start-service-webserver-driver-failed-programming-external-connectivity-on-endpoint-4175724956/)

MakeTopSite 05-11-2023 03:24 AM

ERROR: Cannot start service webserver: driver failed programming external connectivity on endpoint ...
 
Web application running on nginx in docker container has suddenly stopped to work in Leap 15.4.

Code:

# docker-compose build && docker-compose up -d && docker exec -it myProject-php-fpm /bin/bash
mysql uses an image, skipping
webserver uses an image, skipping
Building php-fpm
...
...
Successfully built aaaaaaaaaaaa
Successfully tagged docker_php-fpm:latest
Starting myProject-mysql ...
Starting myProject-php-fpm ...
Starting myProject-webserver ...
WARNING: Host is already in use by another container

ERROR: for myProject-webserver  Cannot start service webserver: driver failed programming external connectivity on endpoint myProject-webserver (bbbbbbbbbbbbbbbbbbb): Starting myProject-mysql    ... error
8.0.3:80 ! -i br-xxxxxxxxxxx: iptables: No chain/target/match by that name.
 (exit status 1))

ERROR: for myProject-mysql  Cannot start service mysql: driver failed programming external connectivity on endpoint myProject-mysql (ccccccccccccccccccccc):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8082 -j DNAT --to-destination 172.18.0.2:3306 !Starting myProject-php-fpm  ... done
 (exit status 1))

ERROR: for webserver  Cannot start service webserver: driver failed programming external connectivity on endpoint myProject-webserver (bbbbbbbbbbbbbbbbbbb):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8080 -j DNAT --to-destination 172.18.0.3:80 ! -i br-xxxxxxxxxxx: iptables: No chain/target/match by that name.
 (exit status 1))

ERROR: for mysql  Cannot start service mysql: driver failed programming external connectivity on endpoint myProject-mysql (ccccccccccccccccccccc):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8082 -j DNAT --to-destination 172.18.0.2:3306 ! -i br-xxxxxxxxxxx: iptables: No chain/target/match by that name.
 (exit status 1))
ERROR: Encountered errors while bringing up the project.

Code:

# docker stop myProject-php-fpm myProject-mysql myProject-webserver
did not help.

No related problem in
Code:

journalctl -r  --priority=err
found.


Any idea please ?

MakeTopSite 05-17-2023 01:43 AM

It's working now, I don't know what has caused that.

sundialsvcs 05-17-2023 09:58 AM

Likely: "Host is being used by another container."

MakeTopSite 05-18-2023 04:18 AM

Quote:

Originally Posted by sundialsvcs (Post 6431364)
Likely: "Host is being used by another container."

Yes I've had noticed it. There were no containers in the output of
Code:

docker ps


All times are GMT -5. The time now is 07:31 PM.