Results 1 to 3 of 3

Thread: problem seems related to docker and dns

  1. #1
    Join Date
    Jul 2020
    Beans
    2

    problem seems related to docker and dns

    I seem to have a problem very similar to what is described here:

    https://medium.com/@faithfulanere/so...g-9ea4dfdcdcf2


    When I run a make command that kicks of docker-compose build, some of the apt-get install fail:

    Failed to fetch http://deb.debian.org/debian/pool/main/p/python-defaults/python-minimal_2.7.13-2_amd64.deb 400 Bad Request
    E: Failed to fetch http://deb.debian.org/debian/pool/main/p/python-defaults/libpython-stdlib_2.7.13-2_amd64.deb 400 Bad Request
    E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/i/icu/libicu57_57.1-6+deb9u4_amd64.deb 400 Bad Request [IP: 151.101.128.204 80]
    E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/i/imagemagick/libmagickcore-6.q16-3_6.9.7.4+dfsg-11+deb9u8_amd64.deb 400 Bad Request [IP: 151.101.128.204 80]
    E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/e/exim4/exim4-config_4.89-2+deb9u7_all.deb 400 Bad Request [IP: 151.101.128.204 80]
    E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/e/exim4/exim4-daemon-light_4.89-2+deb9u7_amd64.deb 400 Bad Request [IP: 151.101.128.204 80]
    E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/o/openldap/libldap-common_2.4.44+dfsg-5+deb9u4_all.deb 400 Bad Request [IP: 151.101.128.204 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    ERROR: Service 'vets-api' failed to build: The command '/bin/bash -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y dumb-init clamav clamdscan clamav-daemon imagemagick pdftk curl poppler-utils libpq5 vim' returned a non-zero code: 100
    make: *** [Makefile:94: rebuild] Error 1

    If I do similar installs outside of docker, it seems fine.

    my /etc/resolve.conf has
    127.0.0.53


    I am fairly baffled

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,596
    Distro
    Ubuntu

    Re: problem seems related to docker and dns

    Thread moved to Debian
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: problem seems related to docker and dns

    Are you trying to use a docker container like a full OS? If so, that isn't their purpose. Compiling, linking, installing stuff while inside a docker container isn't a best practice.

    Probably should mention what version of debian is being used too since python recently deprecated python 2.x completely. Probably need to be on an older Debian release.

    /etc/resolve.conf isn't a config file that gets used by any Unix system. That's a typo, right?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •