[Python] How to install python in a docker image?

Discussão em 'Python' iniciado por Stack, Julho 3, 2025.

  1. Stack

    Stack Membro Participativo

    I want to create a docker image with selenium and chrome correctly installed, so I choose a base image with these properties. Therefore, the first line of the Dockerfile is as follows:

    FROM selenium/node-chrome:3.7.1-argon


    Then the next command is

    RUN apt-get update


    which created the following error while creating the docker image:

    Step 4/19 : RUN apt-get update
    ---> Running in af08ae07cbf3
    Reading package lists...
    E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
    The command '/bin/sh -c apt-get update' returned a non-zero code: 100


    How to be able to install python in this docker image?

    Continue reading...

Compartilhe esta Página