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

Error creating a docker container with crops/poky #113

Open
sgordon777 opened this issue Sep 16, 2024 · 2 comments
Open

Error creating a docker container with crops/poky #113

sgordon777 opened this issue Sep 16, 2024 · 2 comments

Comments

@sgordon777
Copy link

sgordon777 commented Sep 16, 2024

I am trying to create a docker container following these instructions:

https://github.com/crops/poky-container/blob/master/README.md

I am quite new to both yocto-build and Docker. My Host is Ubuntu 22.04. My Command:

docker run --rm -it -v /home/sgordon777/dev/yocto:/workdir crops/poky --workdir=/workdir

This command fails with:

"The uid:gid for "/workdir" is "0:0". The uid and gid must be non-zero. Please check to make sure the "volume" or "bind" specified using either "-v" or "--mount" to docker, exists and has a non-zero uid:gid."

I have checked and my local director (~/dev/yocto) is:
-present
-owned by my user, not root

@jjwatt
Copy link

jjwatt commented Jan 2, 2025

I have this problem in both poky-container and extsdk-container. I left a comment in extsdk-container that might work for you, too crops/extsdk-container#10 (comment)

@jjwatt
Copy link

jjwatt commented Jan 2, 2025

Looking closer at things, these days it might actually be easier to use this docker image and build poky from it: https://github.com/crops/yocto-dockerfiles/blob/master/dockerfiles/ubuntu/ubuntu-18.04/ubuntu-18.04-base/Dockerfile

crops/poky seems to do some gymnastics to make the generated files visible to the host, but I don't think those are needed with modern rootless docker and podman.

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

2 participants