Name: docker-wrapper
Owner: Duke Center for Genomic and Computational Biology
Description: Wrapper scripts for docker volume access
Created: 2015-06-23 14:26:12.0
Updated: 2015-07-24 13:45:47.0
Pushed: 2015-07-01 15:37:00.0
Homepage: null
Size: 140
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Wrapper scripts for docker volume access
Use docker-wrapper.sh
in place of docker
, and invoke with sudo:
sudo docker-wrapper.sh \
-v /data/somelab/someproject/rawdata:/input:ro \
-v /data/somelab/someproject/results:/output \
dockerimage ...
docker-wrapper.sh parses the -v
/--volume
arguments and
If both conditions hold true, the arguments are passed to docker. If not, the script exits with 1
.
docker-wrapper.sh
must be run as sudo (it checks SUDO_UID and whoami
). It is designed to be specified in a sudoers file, allowing users in a docker-wrapper
group to run it
## Allows docker-wrapper group to run docker-wrapper.sh script
%docker-wrapper ALL=/path/to/docker-wrapper/docker-wrapper.sh