Apify Discord Mirror

Updated 2 years ago

Trying to extend Dockerfile, can't install using apt-get getting permission denied

At a glance

The community member is having trouble installing packages in a Dockerfile, encountering either permission denied errors when running apt-get install or no sudo command available. Another community member suggests dropping into the root user to perform the installation using USER root, and then switching back to the regular user. Additionally, a reference is made to a base Dockerfile from the apify/apify-actor-docker repository, which may provide a solution.

Useful resources
Hey, I'm trying to install stuff into the dockerfile and it won'r let me.

1) either I get permission denied when running apt-get install
2) using sudo says there is no sudo (so I should already be root?)
M
L
2 comments
Looks like I can just drop into root for this using USER root and then back to myuser
Add a reply
Sign up and join the conversation on Discord