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

Example docker build command for zephyr dev image does not work for UID/GID != 1000 #202

Open
rkinder2023 opened this issue Sep 19, 2024 · 0 comments

Comments

@rkinder2023
Copy link

A bit of a corner case, but the example command to build the dev zephyr docker image does not yield a working container if your UID and GID on the host is != 1000:

docker build -f Dockerfile.devel --build-arg UID=$(id -u) --build-arg GID=$(id -g) -t zephyr-build:v<tag> .

When this runs, the UID and GID are only referred to in the Dockerfile.base, and this file is contained within ci:latest, which is downloaded from docker.io, hence the UID and GID are as per that build.

Perhaps there is a way to build the underlying containers to take in the UID/GID. If so, this should be added to README.md.

My host is Ubuntu 24.04 under wsl.

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

No branches or pull requests

1 participant