-
Notifications
You must be signed in to change notification settings - Fork 102
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
Building image with own UID=xxxxxx and GID =100 #174
Comments
well, it's definitely possible :) but do you really need it? isn't matching uid sufficient for dev purposes? |
Hey thanks for looking into it. λ ls -la
total 716
drwxrwxr-x 14 johndoe php linux vdi users 4096 Sep 20 11:56 .
drwxr-xr-x 6 johndoe users 4096 Sep 6 11:36 ..
-rwxrwxr-x 1 johndoe users 6225 Sep 8 15:21 composer.json
-rwxr-xr-x 1 johndoe users 532263 Sep 8 15:21 composer.lock
drwxrwxr-x 3 johndoe users 4096 Jun 30 15:28 config
-rw-r--r-- 1 johndoe users 11878 Sep 7 11:55 docker-compose.yml
-rw-r--r-- 1 johndoe users 5 Sep 7 11:55 .dockerignore
-rw-r--r-- 1 johndoe users 2926 Sep 7 11:55 docker.mk
drwxrwxr-x 4 johndoe users 4096 Sep 7 11:55 drush
-rwxrwxr-x 1 johndoe php linux developer 357 Jun 30 15:34 .editorconfig // <--- created/modified in wodby container
-rwxrwxr-x 1 johndoe users 2938 Sep 20 11:56 .env
-rw-r--r-- 1 johndoe users 2724 Sep 7 11:55 .env.dist
drwxrwxr-x 8 johndoe users 4096 Sep 14 12:55 .git
-rwxrwxr-x 1 johndoe php linux developer 3858 Jun 30 15:34 .gitattributes // <--- created/modified in wodby container
-rw-r--r-- 1 johndoe users 893 Sep 7 11:55 .gitignore
drwxrwxr-x 3 johndoe users 4096 Sep 22 09:46 .idea
-rw-r--r-- 1 johndoe users 391 Sep 7 11:55 load.environment.php
-rw-r--r-- 1 johndoe users 128 Sep 7 11:55 Makefile
-rwxrwxr-x 1 johndoe users 1837 Jul 5 09:15 phpunit.xml
-rw-r--r-- 1 johndoe users 1692 Sep 7 11:55 phpunit.xml.dist
-rw-r--r-- 1 johndoe users 7897 Sep 7 11:55 README.md
drwxrwxr-x 7 johndoe users 4096 Jul 14 09:26 tests
drwxrwxr-x 64 johndoe php linux developer 4096 Sep 8 15:21 vendor // <--- created/modified in wodby container
drwxrwxr-x 8 johndoe users 4096 Sep 8 11:01 web |
Because of non-matching UID/GID between host system and the wodby/php image, I'm trying to build my own image (for development purposes). The build process however fails when trying to delete the group the I gave as parameter. Here the details:
My en_make file.
The command I use to launch the build process.
Build output with error message (truncated):
If I'm not wrong, the build process fails because it is trying to delete the group with id 100.
Question:
While the user on my host system belongs to other groups that I can use for the build process, is it possible, instead of trying to delete the group, to add the user to the existing group in the docker image?
The text was updated successfully, but these errors were encountered: