I'm trying to build a Dockerfile. But after executing I get this error:
Sending build context to Docker daemon 31.08MB Step 1/5 : FROM davidrazd/discord-node-10 ---> 0ad384ff6003 Step 2/5 : RUN apt-get update ---> Running in 9fb4313d8011 Reading package lists... W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted) E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ The command '/bin/sh -c apt-get update' returned a non-zero code: 100
I also tried to put
sudo in the dockerfile to make sure I have full access as root.
# Start writing your Dockerfile easily FROM davidrazd/discord-node-10 RUN sudo apt-get update RUN sudo apt-get install -y python-pip RUN sudo install --upgrade pip