Skip to content

Conversation

@rumpl
Copy link
Owner

@rumpl rumpl commented Sep 15, 2022

Mounting the same directory twice with overlayfs will put the mounts in an undefined behavior. We need to make sure that the mounts we do are read-only.

- What I did

Took the code from containerd and added the ReadonlyMounts method to make sure that we are mounting in read-only mode.

- How I did it

- How to verify it

Run docker run -it --user 1000 docker/dev-environments-go:stable-1 and then, in a different terminal, exec into that container, try to create a file, it should work and not fail with No such file or directory.

- A picture of a cute animal (not mandatory but encouraged)
image

@rumpl rumpl requested a review from ndeloof September 15, 2022 13:32
Mounting the same directory twice with overlayfs will put the mounts in
an undefined behavior. We need to make sure that the mounts we do are
read-only.

Signed-off-by: Djordje Lukic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants