Skip to content

chore: add docker group command #949

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

Merged
merged 3 commits into from
Apr 18, 2022
Merged

chore: add docker group command #949

merged 3 commits into from
Apr 18, 2022

Conversation

ericpaulsen
Copy link
Member

@ericpaulsen ericpaulsen commented Apr 18, 2022

updates our CVM image docs to include adding the coder user to the docker group.

this is necessary for any non-root user to use Docker, as the Docker Engine is run as root.

[sc-22848]

@ericpaulsen ericpaulsen added the docs 📝 Improvements or additions to documentation label Apr 18, 2022
@ericpaulsen ericpaulsen self-assigned this Apr 18, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Apr 18, 2022

✨ Coder.com for PR #949 deployed! It will be updated on every commit.

@shortcut-integration
Copy link

Comment on lines 64 to 65
RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN chmod +x /usr/local/bin/docker-compose
Copy link
Member

Choose a reason for hiding this comment

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

these can be joined to reduce the amount of layers using \ &&

RUN useradd coder \
--create-home \
--shell=/bin/bash \
# Add user `coder` to the `docker` group
Copy link
Member

Choose a reason for hiding this comment

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

Does this work? I thought you couldn't put comments in the middle of a command in bash

Copy link
Member Author

Choose a reason for hiding this comment

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

oh, not sure. i added that just to point it out. i can remove

@ericpaulsen ericpaulsen merged commit d9941eb into main Apr 18, 2022
@ericpaulsen ericpaulsen deleted the docker-group branch April 18, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs 📝 Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants