I just tried out the “docker_environment” feature ...
# general
h
I just tried out the “docker_environment” feature to build a docker image using a pex file on a x86 mac. The docker environment uses the “python:3.11.8-slim-bookworm” image and the container I want to build uses an image derived from that as a base. However, when I run the publish command I get a lot of error from tar similar to the last one
/usr/bin/tar: python/share/man/man1/python3.9.1: Cannot change ownership to uid 0, gid 0: Permission denied
. I tried to search, but did not find anything. I suspect this is the process bringing python 3.9 into the image to run pants inside it. But I don’t know how to address this, as the image I’m using as a base also seems to not have a strange user setup. Any clues?
👀 1
b
Just curious - if you only use the
slim
image without specifying
bookworm
as the OS does that change things? I have a pretty similar setup to you and that’s pretty much the only difference in mine.
h
No, that doesn’t change anything. I tried with different images, also with python3.9
I’m using rancher desktop and not docker desktop, maybe that’s the difference. But I thought it’s drop in compatible.
Seems, that was the problem. Rancher Desktop with QEMU and sshfs fails. Switching over to VZ virtualization and virtiofs fixed the problem.