After updating to OS Big Sur I ran into a problem I can't solve :
When I'm building a Docker image via :
docker build - < Dockerfile
with a Dockerfile containing :
FROM python:3
COPY . .
RUN apt-get update
RUN apt-get upgrade
RUN apt-get clean
RUN apt-get install pip3
RUN apt-get install build?essential
RUN apt-get install nano
RUN pip3 install ?r requirements.txt
Docker is returning that kind of things :
E: Unable to locate package pip3
The command '/bin/sh -c apt-get install pip3' returned a non-zero code: 100
Which means that it can't access to the online directories...
I tryed to ping adding this line :
RUN ping -c 1 google.com
And it confirmed that it can't ping google... I also tryed to change for another image like ubuntu, same problem.
Does that mean tha docker is not working on Big Sur ?
Are you experiencing the same kind of troubles on your machines ?
Am I missing something obvious ?
Thanks for your help !
question from:
https://stackoverflow.com/questions/65850729/os-big-sur-docker-issue-cant-see-web-while-building 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…