-
Notifications
You must be signed in to change notification settings - Fork 107
Description
When I execute the commands below to build my linux image inside the container, the resulted file system inside the image is contaminated with wrong (non-root) permissions :
docker run -d --name="crops-cont" -v "/home/user/workdir:/workdir" --workdir="/workdir" crops/poky:ubuntu-18.04
sleep 1
docker exec -u pokyuser "crops-cont" bash -c "source src/poky/oe-init-build-env build-dir/ && bitbake my-image"
When building the image, Bitbake runs smoothly with no errors/warnings. Below is a capture of the obtained file system :

I eliminated all the suspects when analyzing the origin of the problem, and I found out that the container is what is causing the issue. When I build my image without it, the problem disappears.
Does anyone have any clue to what may cause such a problem when using the container ?
also, if I don't add the sleep 1 between the two docker calls inside my script I get :
unable to find user pokyuser: no matching entries in passwd file
is this a normal behavior ?
any help is greatly appreciated :)