You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cp does not detect that a container is --read-only, and lets tar fail through in some cases #3315
I don't think it is worth the effort to create more tickets for this.
There are obviously several more issues with this - including:
copying into a stopped, read-only container, within a rw mount, will fail claiming the destination is read-only
Pretty sure there a bunch of other cases with nested mounts, links, etc.
Furthermore, permissions are not checked on the destination either so...
The problem is very much:
if the container is running, we do not check anything
if it is NOT running, we check if the rootfs is read-only and stops there if it is, regardless of whether the dest is actually rw (could be in a volume) - we only check the mounts if the rootfs is rw
I think this needs to be rewritten entirely, this is just not working.
Activity
apostasie commentedon Aug 15, 2024
I don't think it is worth the effort to create more tickets for this.
There are obviously several more issues with this - including:
Pretty sure there a bunch of other cases with nested mounts, links, etc.
Furthermore, permissions are not checked on the destination either so...
The problem is very much:
I think this needs to be rewritten entirely, this is just not working.
apostasie commentedon Aug 15, 2024
If it is any consolation, docker is also really bad at it:
It is a success, and a failure at the same time (-‸ლ)