Problems with apt-get in docker containers, in manjaro distributions

Hello, I’m having a big delay in the docker containers that run apt-get update or install, through the dockerfile, even if I set the DNS in the docker to 8.8.8.8 as a test, I have had a time of 30 min for the container to succeed find the update packages, I think it may be some blockage in manjaro, since the tests in ubuntu distributions, the installation time of containers is normal.

Do you know what might be happening?

Operating System: Manjaro Linux
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.10.52-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-10510U CPU @ 1.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Intel® UHD Graphics Desktop

Client:
 Context: default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.5.1-tp-docker)

Server:
 Containers: 19
  Running: 4
  Paused: 0
  Stopped: 15
 Images: 441
 Server Version: 20.10.7
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  volume: location
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file location logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 36cc874494a56a253cd181a1a685b44b58a2e34a.m
 runc version: v1.0.1-0-g4144b638
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
  cgroups
 Kernel Version: 5.10.52-1-MANJARO
 Operating System: Manjaro Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 15.4GiB
 Name: feliperocha
 ID: P3FX:7P5F:UECS:4K7L:VACP:YCSM:3ZO6:JQZE:2KBM:3BQZ:F54X:UHQI
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Manjaro does not block anything.

The default network configuration is using NetworkManager.

Have you tried running a traceroute inside your container - as this will most likely tell you where the bottleneck is?

A quick search reveal it is probably an issue with your docker config.

https://duckduckgo.com/?q=docker+dns+not+working

Thanks for the help linux-aarhus, the problem was actually in docker-compose, when I installed docker-compose I followed the docker documentation Install Docker Compose | Docker Documentation → Linux, I removed the entire installation I had made docker and docker-compose, including docker-compose dependencies, and installed it through the pamac manager, docker-compose, and the problem was fixed.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.