Skip to content
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

Not sure what I am doing wrong with permissions #14

Closed
balloman opened this issue Feb 23, 2022 · 5 comments
Closed

Not sure what I am doing wrong with permissions #14

balloman opened this issue Feb 23, 2022 · 5 comments

Comments

@balloman
Copy link

I would consider myself a pretty advanced user, but I have to run the container as root for the permissions to work. Running as any other user, even if they have access to the docker and sudoers results in an operation not permitted on startup. On the other hand, if you run as root, then you just get the error can't read /home/steam/Zomboid/Server/ServerName.ini error. In the meantime, I've found another one that seems to work correctly, but I am curious to know what I'm doing wrong here

@Renegade-Master
Copy link
Owner

What command are you using to run the image?

The container is not supposed to be run as the root user.

@balloman
Copy link
Author

This is the command that I run:

docker run --detach \
    --mount type=bind,source="$(pwd)/ZomboidDedicatedServer",target=/home/steam/ZomboidDedicatedServer \
    --mount type=bind,source="$(pwd)/ZomboidConfig",target=/home/steam/Zomboid \
    --publish 16261:16261/udp --publish 8766:8766/udp \
    --name zomboid-server \
    --user=$(id -u):$(id -g) \
    renegademaster/zomboid-dedicated-server:1.5.0```

@Renegade-Master
Copy link
Owner

Renegade-Master commented Feb 24, 2022

If you are willing to try again, can you run the following?

sudo rm -rf ./ZomboidConfig ./ZomboidDedicatedServer

mkdir ./ZomboidConfig ./ZomboidDedicatedServer

docker run --detach \
    --mount type=bind,source="$(pwd)/ZomboidDedicatedServer",target=/home/steam/ZomboidDedicatedServer \
    --mount type=bind,source="$(pwd)/ZomboidConfig",target=/home/steam/Zomboid \
    --publish 16261:16261/udp --publish 8766:8766/udp \
    --name zomboid-server \
    --user=$(id -u):$(id -g) \
    renegademaster/zomboid-dedicated-server:1.5.0

The README specifies that the folders should be created under the User's account before running the Container.

@Renegade-Master
Copy link
Owner

@balloman ?

@Renegade-Master
Copy link
Owner

Closing issue as it has not been responded to in a while. Hopefully the problem was resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants