Closed rhatdan closed 7 years ago
You can only MS_MOVE a directory to a directory, and a file to a file. Currently we are only creating directories, so when a user tries to mount a socket into a container it fails.
docker run -v /run/docker.sock:/run/docker.sock initcontainer Fails
Signed-off-by: Daniel J Walsh dwalsh@redhat.com
@rhvgoyal PTAL @mrunalp PTAL
https://github.com/nightvisi0n PTAL
Fixes https://github.com/projectatomic/oci-systemd-hook/issues/72
Looked at the code and it looks ok. You did a good bug fix in makepath() recursion path. I have not tested it. I am relying on your testing.
LGTM
You can only MS_MOVE a directory to a directory, and a file to a file. Currently we are only creating directories, so when a user tries to mount a socket into a container it fails.
docker run -v /run/docker.sock:/run/docker.sock initcontainer Fails
Signed-off-by: Daniel J Walsh dwalsh@redhat.com