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

Docker uid gid #1

Open
spazmc opened this issue Dec 25, 2017 · 1 comment
Open

Docker uid gid #1

spazmc opened this issue Dec 25, 2017 · 1 comment

Comments

@spazmc
Copy link

spazmc commented Dec 25, 2017

Could you add variables to set user uid and group gid.
I'm having permission problems with files created on my system.
Great work.

@MrKsey
Copy link
Owner

MrKsey commented Dec 25, 2017

Added variables to set host user uid and group gid.
Usage:

  • create "/xd" directory (for example) on your host
  • set host environment variable HOST_USER=username.
    username - host user, must exist and have read/write permissions on the "/xd" directory.
  • create and start container:
HOST_USER=<username>
docker pull ksey/xd
docker run --name XD -d -p 1488:1488 \
-e HOST_USER_ID=$(id -u $HOST_USER) \
-e HOST_GROUP_ID=$(id -g $HOST_USER) \
-e I2P_ROUTER=<i2pd_IP_adress>:7656 \
-v /xd:/home/xd ksey/xd

i2pd_IP_adress - IP address of the i2pd router.

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