Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10% DNS Failures with Alpine 3.19 or 3.20 #417

Open
richardtearle-nps opened this issue Sep 9, 2024 · 0 comments
Open

10% DNS Failures with Alpine 3.19 or 3.20 #417

richardtearle-nps opened this issue Sep 9, 2024 · 0 comments

Comments

@richardtearle-nps
Copy link

richardtearle-nps commented Sep 9, 2024

We are having trouble with DNS lookups when using Alpine 3.19 or 3.20 images when using podman on Oracle Linux 8. Our actual application is Ruby based which "sometimes" fails to find a redis container on the same podman network. I can reproduce the issue using the following on our network:

docker-compose.wml

version: '2.1'
services:
        httpd:
                image: <local-container-registry>/httpd:2.4.59-alpine3.19
                networks:
                        - common
                ports:
                         - 1080:80
                container_name: httpd
                hostname: httpd
        test:
                image: <local-container-registry>/alpine:3.19
                networks:
                        - common
                container_name: test
                hostname: test
                entrypoint: /usr/local/bin/entrypoint.sh
                volumes:
                        - ./entrypoint.sh:/usr/local/bin/entrypoint.sh:Z

networks:
        common:
                driver: bridge

entrypoint.sh

#!/bin/ash

while (true) ; do
        ERROR=$(ping -c 1 -q httpd 2>&1)
        if [ "$?" -ne "0" ]; then
                echo $(date -Is) failed with: ${ERROR}
        fi
        sleep 1s
done

We see around 10% DNS lookup failures when running the above for around an hour.

We've tried the following, but still get the same failure rate:

  • Changed the host name to match the service/container name (as above)
  • Added the proxy settings via env. vars
  • Started with podman-compose rather than docker-compose
  • Upgraded to Alpine 3.20 (alpine:3.20)
  • Used FQDN

What does work is either switching back to docker, or switching to a different flavour of Linux (we've tried OL8-slim and Debian variants)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant