Install pip in docker

前端 未结 4 1851
野的像风
野的像风 2020-12-09 01:01

I\'m not able to install pip in Docker.

Here\'s my Dockerfile:

FROM ubuntu:14.04

# Install dependencies
RUN apt-get update -y
RUN apt-get install -y         


        
4条回答
  •  伪装坚强ぢ
    2020-12-09 01:33

    Try this:

    1. Uncomment the following line in /etc/default/docker DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
    2. Restart the Docker service sudo service docker restart
    3. Delete any images which have cached the invalid DNS settings.
    4. Build again and the problem should be solved.

    From this question.

提交回复
热议问题