Open Peter-Sh opened 1 year ago
I think we should follow Buildkit defaults. @flouthoc PTAL
I agree we should default to buildkit's behavior I'll open a PR for this.
A friendly reminder that this issue had no activity for 30 days.
@flouthoc any progress?
A friendly reminder that this issue had no activity for 30 days.
Removing stale.
A friendly reminder that this issue had no activity for 30 days.
@flouthoc Reminder
A friendly reminder that this issue had no activity for 30 days.
A friendly reminder that this issue had no activity for 30 days.
Description
Permissions (and owner) of volume directory cannot be changed after VOLUME directive is applied in current or parent image.
This seems to be default behaviour for docker, but works with DOCKER_BUILDKIT=1 and as such may be considered a useful feature.
The use case is to change directory permissions of /data volume declared in parent image to be able to run image in restricted environment (openshift with changing uids). If volume is declared in parent image you have to fully copy parent Dockerfile in order to just change permissions (and owner) of volume mount point.
Steps to reproduce the issue:
Tested with latest stable and testing buildah.
Describe the results you received:
Describe the results you expected:
Results of docker build with DOCKER_BUILDKIT=1