We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07e3c75 commit 2ab8330Copy full SHA for 2ab8330
run.sh
@@ -90,6 +90,23 @@ while [[ $# -gt 0 ]]; do
90
BASE_OS="$2"
91
shift
92
;;
93
+ *)
94
+ # Starting from the first unknown parameter,
95
+ # pass all parameters as a docker run options.
96
+ while [[ $# -gt 0 ]]; do
97
+ if [ -z "${OPTS}" ]; then
98
+ OPTS=${1}
99
+ elif [[ ${1} = *" "* ]]; then
100
+ # parameter contains spaces
101
+ # E.g., docker run ... --shm-size=256m -v /some/path/:/some/path/:rw
102
+ OPTS="${OPTS} \"${1}\""
103
+ else
104
+ OPTS="${OPTS} ${1}"
105
+ fi
106
+ shift
107
+ done
108
+ break
109
+ ;;
110
esac
111
112
done
0 commit comments