Temporary failure resolving



  • Errors Seen:

       docker: Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
        docker:   Temporary failure resolving 'security.ubuntu.com'
        docker: Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
        docker:   Temporary failure resolving 'archive.ubuntu.com'
        docker: Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
        docker:   Temporary failure resolving 'archive.ubuntu.com'
        docker: Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
        docker:   Temporary failure resolving 'archive.ubuntu.com'
    

    While running.

    $ packer build docker1.json
    

    The provisioners section has a inline commands:

        "inline": [
           "sleep 30",
           "apt-get -q update",
           "apt-get install -yq apache2"
        ]
    

    The error is not specific to docker. For some reason the apt-get command cannot reach the ubuntu software repos. Some kind of network related issue. For the purposes of docker. Docker is not communicating with the host networking.

    Resolution in this particular case.

    $ sudo systemctl restart docker
    

    ..and try again.


Log in to reply
 

© Lightnetics 2024