Adds $DOCKERFILES_RUN_FLAGS when running containers through command_not_found_handle

This commit is contained in:
Jerome Petazzoni 2015-09-30 12:57:41 -07:00
parent 63dcbba106
commit cec75699e8

2
bashrc
View File

@ -38,7 +38,7 @@ command_not_found_handle () {
docker run $DASHT -i -u $(whoami) -w "$HOME" \ docker run $DASHT -i -u $(whoami) -w "$HOME" \
$(env | cut -d= -f1 | awk '{print "-e", $1}') \ $(env | cut -d= -f1 | awk '{print "-e", $1}') \
$DEVICES $VOLUMES \ $DOCKERFILES_RUN_FLAGS $DEVICES $VOLUMES \
-v /etc/passwd:/etc/passwd:ro \ -v /etc/passwd:/etc/passwd:ro \
-v /etc/group:/etc/group:ro \ -v /etc/group:/etc/group:ro \
-v /etc/localtime:/etc/localtime:ro \ -v /etc/localtime:/etc/localtime:ro \