[archived] Docker build inside Codespaces used to confuse Dockerfiles unless you run touch Dockerfile
first
#38878
-
UPDATEThis discussion was about a bug in Docker that manifested itself in GitHub Codespaces in 2023, but is now fixed and resolved. Select Topic AreaBug BodySee https://github.com/michielbdejong/codespaces-weirdness - the weirdness is explained in the readme there. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
I updated the title to be more descriptive of the actual bug. |
Beta Was this translation helpful? Give feedback.
-
Bump
So far, apparently not - any tips about how to reach them would also be appreciated! |
Beta Was this translation helpful? Give feedback.
-
See answer below:
|
Beta Was this translation helpful? Give feedback.
-
Hi from the Codespaces team 👋. Thanks for reporting this and providing a very clear minimal repro of the problem. I took a look, and this is a bug is Docker/Moby's BuildKit engine: moby/buildkit#1368. I don't think it's a codespaces-specific issue, but Codespace does enable BuildKit by default, which could explain why it happens in Codespaces. Disabling the |
Beta Was this translation helpful? Give feedback.
-
This is reportedly fixed in Docker v23 and it looks like CodeSpaces now has v24 so I'll re-test https://github.com/michielbdejong/codespaces-weirdness now. |
Beta Was this translation helpful? Give feedback.
See answer below: