Skip to content

fairuskhalid/whitelist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whitelist

This is an Image Whitelist Docker plugin implementation. It is based on Docker Authorization plugin model. The plugin will look for the allowed images from the whitelist before an image can be run. With this the owner or administrator of the host machine can control what can be run on the machine.

wlplugin.png

Fastway to try (container)

  1. download plugin and server container from docker hub
  • docker pull fairus/wlserver:v1
  • docker pull fairus/wlplugin:v1
  1. run the container
  • docker run -d --restart=always -p 8080:8080 fairus/wlserver:v1
  • docker run -d --restart=always -v /var/run:/var/run -v /run/docker/plugins/:/run/docker/plugins -v /etc/group:/etc/group fairus/wlplugin:v1 /wlplugin -wlhost http://192.168.56.101:8080/getlist
  1. add plugin option for docker daemon (below is using systemd)
  • sudo systemctl edit --full docker.service
  • ExecStart=/usr/bin/docker daemon ..... --authorization-plugin=whitelist-plugin
  • sudo service docker restart
  1. to update the whitelist
  • copy out the file: docker cp [wlserver]:whitelist.dat whitelist.dat
  • update whitelist.dat with image id
  • copy inn the file: docker cp whitelist.dat [wlserver]:whitelist.dat

About

docker plugin image whitelist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published