-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running as Root User - No such file or directory #8
Comments
Hmm... This is an example of what a successful run should look like. Everything above the line I linked should also happen. |
It's repeatable on Ubuntu 20.04.3. Maybe it has something to do with me running as root? |
I was able to use this other project's image successfully: https://github.com/PepeCitron/projectzomboid-server Maybe the fix is in there? |
Ah, you shouldn't be running it as root. There is no need. Running containers as root isn't advised anywhere, especially on a server connected directly to the Internet. If there is some way that an attacker can gain root access in the Docker Container, it is much easier for them to gain root access on the Host too. Better to stick with User accounts. If you follow the instructions in the Readme, you should have no issues running without |
@pawl, I take it that I can close this issue now? |
Use
|
Yep, just like that. I have a similar solution in the README both here and here. Seeing as there are several ways around this issue that have been highlighted, and none of them are actual issues with the image, I am going to go ahead and close this issue now. It is pinned for reference though, because there is some good information here. |
@Renegade-Master thanks for looking into it! Yeah closing sounds good. |
Something weird is happening: I'm trying to run it with my default user (1000:1000) and from the first step, when updating ownership, it throws an error "operation not permitted". |
Oh, sorry. I only just saw this, @CalvoUTN. |
I tried to use
docker-compose up
with this project, and it encountered this error and didn't finish starting the server:The text was updated successfully, but these errors were encountered: