###WIP
This plugin is a docker authorization plugin Which has two Goals:
1 - Vrify that each container create request sepcifies the -m flag in order to limit the maximun amount of memory used by that contaner
2 - Make sure the the daemon never overcommits memory
In ordet to devlop or just run it you have to work according to the documentation for docker plugins
###Prerequisites:
- Go 1.7 or later.
- Docker 1.12 or later.
- Git.
###Example on Ubuntu OS:
git clone https://github.com/swarm-hooks/AuthzMemory
cd AuthzMemory/broker
go build
Executable binary file will be created. It can be copied to any directory.
sudo service docker stop
./broker
... sudo .../dockerd --authorization-plugin=authz-broker
###All Set now work with the docker engine and the engine will use the plugin.