Docker apt-get update fails

后端 未结 8 1262
天命终不由人
天命终不由人 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:32

    I am using the version of Mint and after installing Docker and try to create an image of Ubuntu to do the apt-get update command does not recognize, to remedy the problem, I did step down

    docker run -it -p 8080:80  ubuntu /bin/bash
    echo "91.189.92.201 archive.ubuntu.com" >> /etc/hosts
    cat /etc/hosts
    apt-get update
    
    0 讨论(0)
  • 2020-12-23 17:32

    I faced the same problem with docker-compose. I solve that by adding ENV http_proxy 'proxy.com' entry into Dockerfile.

    0 讨论(0)
提交回复
热议问题