Skip to content

Conversation

mafredri
Copy link
Member

This PR was prompted by a discussion on Discord.

It's most likely never the case that our Docker images coder user (1000:1000) will have write permissions on the Docker socket. For this reason we mention --group-add in the CLI commands and add a commented group_add: to our docker-compose.yaml.

Hopefully this will help users resolve permission errors on their docker sockets and avoid cases where they have to manually chown it.

An alternative/additional step we could take is to run our image as root with an entrypoint that 1) ensures socket permissions and 2) drops privileges via gosu/su-exec.

@mafredri mafredri self-assigned this Sep 28, 2022
@mafredri mafredri requested review from a team and bpmct September 28, 2022 09:10
@mafredri mafredri merged commit 31aaa1e into main Sep 28, 2022
@mafredri mafredri deleted the mafredri/docker-groupadd-docs branch September 28, 2022 13:33
Copy link
Member

@bpmct bpmct left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran into this the other day but was unaware of the --group-add flag! This is awesome.

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

Successfully merging this pull request may close these issues.

3 participants