RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.62k stars 1.64k forks source link

Docker: permission denied #621

Closed andi34 closed 2 years ago

andi34 commented 2 years ago

Hey!

I am trying to use the build-docker script to build PiOS but the process fails at the end with an permission error. Any idea what's wrong?

I am using Xububtu 20.04.4 x64 on Desktop.

I've already tried creating the deploy and work folder and set perms to 777 for testing, but also no success.

PXL_20220714_100706611 MP

andi34 commented 2 years ago

I've changed the copy command to

echo "copying results from deploy/"
${DOCKER} cp "${CONTAINER_NAME}":/pi-gen/deploy /tmp/

But now I get chmod operation not permitted

andi34 commented 2 years ago

Docker was installed via snap, removed it and reinstalled following https://docs.docker.com/engine/install/ubuntu/

Also added my user to the docker group. Running a new build now, hope it solves the problem...

andi34 commented 2 years ago

Well, that solved it.