Skip to content
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

[nRF Connect] Update README - Building with Docker #3629

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

Damian-Nordic
Copy link
Contributor

Problem

The instruction for building nRF Connect examples using a Docker container was changed recently to use a non-root user for security and usability reasons. The Docker image, however, used a fixed user ID, 1000, which doesn't necessarily match the current user ID. As a result a user outside the container might still not be able to remove files created in the container.

Summary of Changes

Pass the current user ID to the Docker container by an environmental variable handled in the container so that the container session is run as the current user.

The instruction for building nRF Connect examples using
a Docker container was changed recently to use a non-root
user for security and usability reasons. The Docker image,
however, used a fixed user ID, 1000, which doesn't
necessarily match the current user ID. As a result a user
outside the container might still not be able to remove
files created in the container.

Pass the current user ID to the Docker container by an
environmental variable handled in the container so that
the container session is run as the current user.
@andy31415 andy31415 merged commit 69dcdb5 into project-chip:master Nov 6, 2020
@Damian-Nordic Damian-Nordic deleted the feature/docker-runas branch December 9, 2020 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants