| Summary: | [terminal] Docker container UID and GID is not configurable | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Docker | Assignee: | Anthony Hunter <ahunter.eclipse> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ahunter.eclipse, gheorghe |
| Version: | 5.0 | ||
| Target Milestone: | 6.0 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
This problem was fixed on the "internal Docker test server". I made changes in Bug 430328 but forgot to reflect those changes on this server. The user that runs the orion server is userid 1000 and the user is in the users group with groupid 100. Since by default the first user created using the adduser command on Ubuntu is UID 1000 I just assumed that you could set up Orion to run as UID 1000. This was a bad assumption and we already have had two internal Docker test servers where Orion is not running as UID 1000. Looks like we need two more settings in the orion.conf: orion.core.docker.uid=1002 orion.core.docker.gid=1003 (In reply to Anthony Hunter from comment #2) > Looks like we need two more settings in the orion.conf: > orion.core.docker.uid=1002 > orion.core.docker.gid=1003 Fixed with commit: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=04404876f948aa1e98f218386513692e219f095b and http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=8983f1a8ddf938ea9ead4ac83435663c3f0f9ef9 The default UID is 1000 and GID is 100 unless you override. (In reply to Anthony Hunter from comment #2) > Looks like we need two more settings in the orion.conf: > orion.core.docker.uid=1002 > orion.core.docker.gid=1003 Fixed with commit: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=04404876f948aa1e98f218386513692e219f095b and http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=8983f1a8ddf938ea9ead4ac83435663c3f0f9ef9 The default UID is 1000 and GID is 100 unless you override. (In reply to Anthony Hunter from comment #4) > The default UID is 1000 and GID is 100 unless you override. I thought it would be "smart" to use a GID that already existed in base ubuntu /etc/group. From the adduser manpage: By default, each user in Debian GNU/Linux is given a corresponding group with the same name and id. So almost definitely the group will not be 100. Need to fix again, the default on a clean system will be 1000. |