Skip to content
This repository was archived by the owner on Sep 25, 2022. It is now read-only.

Add ability to choose uid and gid #4

Open
ismell opened this issue Nov 11, 2017 · 2 comments
Open

Add ability to choose uid and gid #4

ismell opened this issue Nov 11, 2017 · 2 comments

Comments

@ismell
Copy link

ismell commented Nov 11, 2017

I'm trying to edit the contents of a volume, but I need uid = 100 and gid = nobody
It would be nice if the container somehow respected docker run --user 100:nobody so I was able to edit my files with the correct permissions.

@ismell
Copy link
Author

ismell commented Nov 11, 2017

@tuanhtrng
Copy link
Contributor

The alpine-vim-base is working with custom uid/gid as long as /etc/passwd and /etc/group are mounted properly. It is strongly recommended to mount them as read-only. The bundle, however, will not be available. User resources/plugins have to be mounted if the extended capabilities are required.

As for the vim-bundle image, it is rather complicated to meet your request. The hardcoded permission has to be undone, and those vim resources/plugins have to be installed at the system level.

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

No branches or pull requests

2 participants