Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Temporary Dockerfile sometimes fails with permission issues #4

Open
robdimsdale opened this issue Sep 15, 2021 · 0 comments
Open

Temporary Dockerfile sometimes fails with permission issues #4

robdimsdale opened this issue Sep 15, 2021 · 0 comments

Comments

@robdimsdale
Copy link

On some machines (but not all) we noticed that bookdocker fails with permissions error:

 => ERROR [internal] load build definition from Dockerfile                                                         0.0s
 => => transferring dockerfile: 106B                                                                               0.0s
------
 > [internal] load build definition from Dockerfile:
------
failed to solve with frontend dockerfile.v0: failed to read dockerfile: error from sender: open /private/tmp/KSOutOfProcessFetcher.0x6uzinfjm: permission denied

The way we solved this was changing the way docker reads in the Dockerfile as follows:

docker build --tag "${image_tag}" --file - . < /tmp/Dockerfile

(See: https://github.com/docker/cli/issues/2249 for more info).

This change seems to fix the issue on the machines where it didn't work, and doesn't seem to impact machines where it previously worked.

Would you like a PR for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant