Skip to content

AkihiroSuda/securebind-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

securebind-docker: recursively read-only bind-mount for Docker

Motivation

docker run -v /foo:/bar:ro is not recursively read-only:

$ mount | grep "on /run "
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=814396k,mode=755)
$ docker run --rm -v /:/host:ro busybox touch /host/run/compromise

Usage

$ ./build.sh
$ docker plugin create securebind . 
$ docker plugin enable securebind
$ docker volume create foo -d securebind -o source=/
$ docker run -it --rm -v foo:/host busybox

About

recursive read-only bind-mount for Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published