- #!/bin/bash
- touch /home/user/.docker
- chown user: /home/user/.docker
- while : ; do
- inotifywait -e close_write /home/user/.docker &>/dev/null
- x=$(</home/user/.docker)
- if [ "$x" ] && grep -qFx "$x" /root/docker.allowed ; then
- docker start "$x"
- fi
- > /home/user/.docker
- done
Undefined
By: Guest | Date: Jul 7 2016 16:55 | Format: None | Expires: never | Size: 368 B | Hits: 756
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago