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

AMP Docker does not run as the user launching the docker #16

Closed
wispoffates opened this issue Apr 23, 2018 · 3 comments
Closed

AMP Docker does not run as the user launching the docker #16

wispoffates opened this issue Apr 23, 2018 · 3 comments

Comments

@wispoffates
Copy link

wispoffates commented Apr 23, 2018

A docker instance is being run as the user 'amp' but internally the docker must be using root as these files get owned by root and thus the chmod fails.

v1.7.0.0, built 23/04/2018 03:00

[Debug] Started process with ID 12037
/bin/chmod: changing permissions of './FileManager.kvp': Operation not permitted
/bin/chmod: changing permissions of './LocalFileBackupPlugin.kvp': Operation not permitted
/bin/chmod: changing permissions of './PushBulletPlugin.kvp': Operation not permitted
/bin/chmod: changing permissions of './AMP_Logs': Operation not permitted
/bin/chmod: changing permissions of './UserData.json': Operation not permitted
/bin/chmod: changing permissions of './Licences': Operation not permitted
/bin/chmod: changing permissions of './Licences/AMP': Operation not permitted
/bin/chmod: changing permissions of './Licences/AMP/f4c3bdb3-34d8-41fc-909d-21e1bfe8ff84.lic': Operation not permitted
/bin/chmod: changing permissions of './EmailSender.kvp': Operation not permitted
/bin/chmod: changing permissions of './RoleData.json': Operation not permitted
/bin/chmod: changing permissions of './AMPConfig.conf': Operation not permitted
/bin/chmod: changing permissions of './MinecraftModule.kvp': Operation not permitted
/bin/chmod: changing permissions of './BannerImagePlugin.kvp': Operation not permitted
/bin/chmod: changing permissions of './Minecraft': Operation not permitted
/bin/chmod: changing permissions of './Minecraft/plugins': Operation not permitted
[Debug] Saving instances to /home/amp/.ampdata/instances.json...
[Debug] Wrote 2 instances.

@PhonicUK
Copy link
Contributor

Is the user you're running AMP as a member of the Docker group? I can't reproduce this issue.

@wispoffates
Copy link
Author

docker run hello-world returns correctly and the files are definitely listed as owned by root:root

@PhonicUK
Copy link
Contributor

After some investigation this is the expected behaviour. Inside the docker container everything is root, if you do something like docker run -it debian:stable-slim you will be logged in as root and the AMP user doesn't exist.

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