-
Notifications
You must be signed in to change notification settings - Fork 249
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
Unable to run with Rootless Docker configuration. #496
Comments
Could you share your relevant nix config snippets? |
Hi, this is my Docker config in my
I have an existing save that I was looking to transfer over but that was something to be done after the server was up and running on that machine, so I was using the example Docker Compose configuration in the README for the Factorio server.
If you need any other information please let me know, thank you. |
Have you chown'ed the right directory? I will personally set it up myself later today, but according to the example setup the data is stored in |
I believe I did but it has been a while since I tried to launch it, I'll give it another go.
|
The container expects the mounted folder to have UID:GID of 845:845. Rootless Docker is probably unable to change it if it's owned by a different user. Can you check who the owner of |
Just double checked, chown'd to 845 using |
After running some tests on my own in rootless Docker in Docker container (image docker:27.2-dind-rootless) I ran into the same issue with permissions. My theory was that the rootless Docker daemon cannot change ownership of the mounted volume which is why this fails. I don't know if there is a better solution to fix it in general but I chowned the Hope this helps. |
I must have done something wrong because I chown'd it to 1000:1000 using
|
Did you start the Factorio server container afterwards? |
Yes, it still does not work but it tries to change ownership multiple times now instead of just once then failing. |
Took look at the ownership of some other directories that are being used by some other containers being ran, turns out my Docker uid is |
Hello, I have a little server box running NixOS, and I'm trying to launch the container to complete the setup, however the container fails to launch with the error
chown: changing ownership of '/factorio': Operation not permitted
The line that fails is
chown -R factorio:factorio /factorio
I have followed all of the setup instructions as best I could, but solving this issue has eluded me.
I launch the container using
docker-compose up -d
, as my Docker is configuredRootless
as is described in the NixOS and Docker documentation.Any help is appreciated.
The text was updated successfully, but these errors were encountered: