After cpanel update Docker container lost its internet connectivity

Operating System & Version
CentOS Linux release 7.9.2009 (Core)
cPanel & WHM Version
94.0 (build 8)

angel.panayotov

Registered
May 11, 2021
4
1
3
varna
cPanel Access Level
Root Administrator
Hello. I just noticed that after cpanel update was performed the docker container on the machine lost its internet connectivity. This is noticed on multiple servers (more than 5 running CentOS7)

I assume that the bridge is functional because i can ping the host (gateway) from within the container but there is no internet connection to the outside world.

Also the routes are present.

I think that there is something that cpanel restarts after an update which breaks the docker connectivity. After restarting the docker daemon everything is working until the next update. Here are the yum logs, configurations of the container, host + routes.

Yum logs:
Code:
May 05 21:48:56 Updated: ea-php72-php-common-7.2.34-5.5.7.cpanel.x86_64
May 05 21:48:56 Updated: ea-php73-runtime-7.3.28-1.1.1.cpanel.x86_64
May 05 21:48:56 Updated: ea-php73-php-common-7.3.28-1.1.3.cpanel.x86_64
May 05 21:48:56 Updated: ea-php74-runtime-7.4.18-1.1.1.cpanel.x86_64
May 05 21:48:57 Updated: ea-php74-php-common-7.4.18-1.1.3.cpanel.x86_64
May 05 21:48:57 Updated: ea-php74-php-cli-7.4.18-1.1.3.cpanel.x86_64
May 05 21:48:57 Updated: ea-php74-php-litespeed-7.4.18-1.1.3.cpanel.x86_64
May 05 21:48:57 Updated: ea-php74-php-pdo-7.4.18-1.1.3.cpanel.x86_64
May 05 21:48:57 Updated: ea-php74-php-devel-7.4.18-1.1.3.cpanel.x86_64
May 05 21:48:57 Updated: ea-php74-php-ftp-7.4.18-1.1.3.cpanel.x86_64
May 05 21:48:57 Updated: ea-php74-php-xml-7.4.18-1.1.3.cpanel.x86_64
May 05 21:48:57 Updated: ea-php74-php-posix-7.4.18-1.1.3.cpanel.x86_64
May 05 21:48:58 Updated: ea-php74-pear-1.10.12-1.1.25.cpanel.noarch
May 05 21:48:58 Updated: ea-php73-php-litespeed-7.3.28-1.1.3.cpanel.x86_64
May 05 21:48:59 Updated: ea-php73-php-cli-7.3.28-1.1.3.cpanel.x86_64
May 05 21:48:59 Updated: ea-php73-php-xml-7.3.28-1.1.3.cpanel.x86_64
May 05 21:48:59 Updated: ea-php73-php-posix-7.3.28-1.1.3.cpanel.x86_64
May 05 21:48:59 Updated: ea-php73-php-devel-7.3.28-1.1.3.cpanel.x86_64
May 05 21:48:59 Updated: ea-php73-php-pdo-7.3.28-1.1.3.cpanel.x86_64
May 05 21:48:59 Updated: ea-php73-php-ftp-7.3.28-1.1.3.cpanel.x86_64
May 05 21:49:00 Updated: ea-php73-pear-1.10.12-1.1.20.cpanel.noarch
May 05 21:49:00 Updated: ea-php72-php-litespeed-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:00 Updated: ea-php72-php-cli-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:00 Updated: ea-php72-php-ftp-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:00 Updated: ea-php72-php-pdo-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:00 Updated: ea-php72-php-devel-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:01 Updated: ea-php72-php-xml-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:01 Updated: ea-php72-php-posix-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:01 Updated: ea-libzip-1.7.3-3.3.1.cpanel.x86_64
May 05 21:49:01 Updated: ea-apache24-tools-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:01 Updated: ea-apache24-mod_cgid-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:01 Updated: ea-apache24-config-runtime-1.0-170.170.5.cpanel.noarch
May 05 21:49:01 Updated: ea-apache24-config-1.0-170.170.5.cpanel.noarch
May 05 21:49:01 Updated: ea-apache24-mod_headers-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:01 Updated: ea-apache24-mod_proxy_wstunnel-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:01 Updated: ea-apache24-mod_mpm_worker-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:01 Updated: ea-apache24-mod_proxy_http-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:01 Updated: ea-apache24-mod_proxy-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:01 Updated: ea-apache24-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:01 Updated: ea-apache24-mod_bwlimited-1.4-47.49.55.cpanel.x86_64
May 05 21:49:01 Updated: ea-apache24-mod_ssl-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:01 Updated: ea-apache24-mod_proxy_fcgi-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:01 Updated: ea-apache24-mod_unique_id-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:02 Updated: ea-apache24-mod_security2-2.9.3-12.12.8.cpanel.x86_64
May 05 21:49:02 Updated: ea-php72-php-fpm-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:02 Updated: ea-php73-php-fpm-7.3.28-1.1.3.cpanel.x86_64
May 05 21:49:02 Updated: ea-php74-php-fpm-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:02 Updated: ea-apache24-mod_deflate-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:03 Updated: ea-apache24-mod_suphp-0.7.2-27.27.21.cpanel.x86_64
May 05 21:49:03 Updated: ea-apache24-mod_expires-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:03 Updated: ea-apache24-mod_http2-2.4.46-6.12.1.cpanel.x86_64
May 05 21:49:03 Updated: ea-php74-php-zip-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:03 Updated: ea-php72-pear-1.10.12-1.1.20.cpanel.noarch
May 05 21:49:03 Updated: ea-php72-php-mysqlnd-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:03 Updated: ea-php72-php-iconv-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:03 Updated: ea-php72-php-bcmath-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:03 Updated: ea-php72-php-mbstring-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:03 Updated: ea-php72-php-sockets-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:03 Updated: ea-php72-php-curl-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:03 Updated: ea-php72-php-calendar-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:03 Updated: ea-php72-php-imap-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:03 Updated: ea-php72-php-gd-7.2.34-5.5.7.cpanel.x86_64
May 05 21:49:03 Updated: ea-php73-7.3.28-1.1.1.cpanel.x86_64
May 05 21:49:03 Updated: ea-php73-php-mysqlnd-7.3.28-1.1.3.cpanel.x86_64
May 05 21:49:03 Updated: ea-php73-php-sockets-7.3.28-1.1.3.cpanel.x86_64
May 05 21:49:03 Updated: ea-php73-php-gd-7.3.28-1.1.3.cpanel.x86_64
May 05 21:49:03 Updated: ea-php73-php-calendar-7.3.28-1.1.3.cpanel.x86_64
May 05 21:49:03 Updated: ea-php73-php-imap-7.3.28-1.1.3.cpanel.x86_64
May 05 21:49:03 Updated: ea-php73-php-iconv-7.3.28-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php73-php-curl-7.3.28-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php73-php-bcmath-7.3.28-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php73-php-mbstring-7.3.28-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-7.4.18-1.1.1.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-pgsql-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-odbc-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-mysqlnd-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-mbstring-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-bz2-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-bcmath-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-tidy-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-curl-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-intl-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-snmp-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-enchant-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-gd-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-dba-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-iconv-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-calendar-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-sockets-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-ldap-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-opcache-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-soap-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-imap-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-process-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-fileinfo-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-exif-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-gmp-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-xmlrpc-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-pspell-7.4.18-1.1.3.cpanel.x86_64
May 05 21:49:04 Updated: ea-php74-php-gettext-7.4.18-1.1.3.cpanel.x86_64
Docker host network interface configuration:
Code:
3: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:8e:4d:2e:1f brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 scope global docker0
valid_lft forever preferred_lft forever
inet6 fe80::42:8eff:fe4d:2e1f/64 scope link
valid_lft forever preferred_lft forever
Container network interface configuration:
Code:
26: eth0@if27: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 172.17.0.2/16 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::42:acff:fe11:2/64 scope link
valid_lft forever preferred_lft forever
Container routes:
Code:
default via 172.17.0.1 dev eth0 
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.2
After restarting the docker service everything is working as it should with the confiugurations above. Restarting the container gives no result.
Please help me to identify what is causing this issue and how to avoid it because i currently have to restart the docker service on every update.

Thanks
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,569
2,612
363
cPanel Access Level
Root Administrator
Hey there! cPanel doesn't officially provide support for docker containers, so I'm not certain what the underlying issue may be. It's completely possible there is something that cPanel restarts that contributes to this issue, but since this isn't something we test on our end I wouldn't be able to say for sure what that is.