Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix Docker permissions#114

Open
manics wants to merge 2 commits intoome:master from
manics-archive:docker-permissions
Open

Fix Docker permissions #114
manics wants to merge 2 commits intoome:master from
manics-archive:docker-permissions

Conversation

@manics
Copy link
Member

@manics manics commented Mar 7, 2019

A couple of fixes to get the docker node running:

  • Ensure the docker group id inside the container and outside the host are the same (needed since /var/run/docker.sock is bind-mounted
  • The workspace is shared between the Jenkins node and the ephemeral container, so can't be transiently created

manics added 2 commits March 7, 2019 12:26
/var/run/docker.sock is mounted from the host into the docker node. Since Jenkins runs as a non-privileged user the Jenkins user must be a member of the docker group, and the docker group ID inside the node must match that of the host. Therefore run.sh is changes the GID of the docker group inside the node
Copy link
Member

Is the docker now being used?

Copy link
Member Author

manics commented Mar 19, 2019
edited
Loading

Not in the new jobs, though apparently it's used in some of the BF jobs. If the GIDs and permissions in devspace and the host happen to be compatible this PR doesn't do anything, otherwise it should ensure the docker nodes work regardless of your user-id

Copy link
Member

I can see the benefit moving forward for new devspaces, but I'm concerned about how to roll out this (and perhaps some of the other changes) to a running devspace. If it's not required, and they are currently working, perhaps we hold this for 0.12 (assuming your current batch of PRs is targeting 0.11)

Copy link
Member Author

manics commented Mar 19, 2019

Sounds fine to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /