Docker apt-get update fails

后端 未结 8 1264
天命终不由人
天命终不由人 2020-12-23 16:47

Can somebody help me get apt-get working in my docker container? Whenever I try running any apt-get command in my docker container, the command fails. I\'m running Docker ve

8条回答
  •  感情败类
    2020-12-23 17:18

    First check if you have connection, ping directly to ip 91.189.92.201 that archive.ubuntu.com is pointed to:

    ping 91.189.92.201

    If you still can't reach the host it's not a dns problem.

    Also if you have internet connection, you can make a hack. Just put a row into /etc/hosts file and problem solved:

    91.189.92.201 archive.ubuntu.com

提交回复
热议问题