Skip to content

Permission issue for directories created in Archlinux image on Docker hub

Created by: alerque

Assuming this is the repository used to generate the archlinux Docker image, that image has developed a problem in the last week or two that's pretty serious. One cannot stat directories created inside the container.

See my forum post here where another user has confirmed a similar problem. The common denominator appears to be the arch base image.

A MWE might look like this:

FROM archlinux

COPY ./ /src
WORKDIR /src

RUN ls -ald

The image will build fine locally, but it dies when trying to build on Docker hub with an error like this:

Step 17/28 : RUN ls -ald
---> Running in ec8f9f6c3604
ls: cannot access '.': Operation not permitted

The same goes for pretty much anything that tries to inspect the directory. You can run ls but not ls -ad. You can run autoreconf --install which only creates files, but you can't run ./configure which ties to inspect the current directory.

Edited by Sven-Hendrik Haase
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information