docker no connection to internet Connection failed ubuntu 18 Connection failed. apt-get update Ошибка соединения

docker no connection to internet Connection failed ubuntu 18 Connection failed [IP: 91.189.88.142 80

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/b... Connection failed [IP: 91.189.88.142 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

По сути не выполняется обращение к сети из контейнера начиная с некоторого запроса, при выполнении в Dockerfile:

RUN apt-get update

(см. в комментариях примеры логов для конкретных Dockerfile)

vedro-compota's picture

для:

FROM ubuntu:18.04
RUN apt update

получаем:

$ docker build ./
Sending build context to Docker daemon 3.072kB
Step 1/2 : FROM ubuntu:18.04
---> c3c304cb4f22
Step 2/2 : RUN apt update
---> Running in 3b8409b4f6be

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [52.4 kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [908 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [844 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [8505 B]
Err:6 http://archive.ubuntu.com/ubuntu bionic InRelease
Connection failed [IP: 91.189.88.142 80]
Err:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Connection failed [IP: 91.189.88.142 80]
Err:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Connection failed [IP: 91.189.88.142 80]
Fetched 1902 kB in 3min 1s (10.5 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/b... Connection failed [IP: 91.189.88.142 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/b... Connection failed [IP: 91.189.88.142 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/b... Connection failed [IP: 91.189.88.142 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Removing intermediate container 3b8409b4f6be
---> 173fb00c5b8e
Successfully built 173fb00c5b8e

_____________
матфак вгу и остальная классика =)

vedro-compota's picture

FROM php:7.4-cli
RUN apt update

получаем:

$ docker build ./

Sending build context to Docker daemon 3.072kB
Step 1/2 : FROM php:7.4-cli
7.4-cli: Pulling from library/php
54fec2fa59d0: Already exists
cc4504446071: Already exists
f8d55b89827d: Already exists
6bf7f8bea876: Already exists
408b24f0cbbd: Already exists
d76755163b41: Already exists
b5ec10034b1f: Already exists
b81d62ef030e: Already exists
61a5d74c992c: Already exists
Digest: sha256:3e6d31cfef1b37595ed11877f274a3105ab54f51bdb3b5c41cd089cda9b3d0d6
Status: Downloaded newer image for php:7.4-cli
---> bae68dcbe13d
Step 2/2 : RUN apt update
---> Running in 0da538c0c1f4

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Err:1 http://security.debian.org/debian-security buster/updates InRelease
Connection failed [IP: 151.101.128.204 80]
Err:2 http://deb.debian.org/debian buster InRelease
Connection failed [IP: 151.101.14.133 80]
Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Err:3 http://deb.debian.org/debian buster-updates InRelease
Connection failed [IP: 151.101.14.133 80]
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
W: Failed to fetch http://deb.debian.org/debian/dists/buste... Connection failed [IP: 151.101.14.133 80]
W: Failed to fetch http://security.debian.org/debian-securi... Connection failed [IP: 151.101.128.204 80]
W: Failed to fetch http://deb.debian.org/debian/dists/buste... Connection failed [IP: 151.101.14.133 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Removing intermediate container 0da538c0c1f4
---> b7c9fd532444
Successfully built b7c9fd532444

_____________
матфак вгу и остальная классика =)