mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Filter gpus instead of nvidia-gpus from resource arguments
We transform the argument here: https://github.com/dokku/dokku/blob/master/plugins/resource/triggers.go#L58
This commit is contained in:
committed by
GitHub
parent
f36701206c
commit
a631505cd6
@@ -87,7 +87,7 @@ execute_script() {
|
||||
DOCKER_ARGS+=$(: | plugn trigger docker-args-process-deploy "$APP" "$IMAGE_SOURCE_TYPE" "$IMAGE_TAG")
|
||||
|
||||
# strip certain args from DOCKER_ARGS
|
||||
local filtered_args=("restart" "cpus" "memory" "memory-swap" "memory-reservation" "nvidia-gpu")
|
||||
local filtered_args=("restart" "cpus" "memory" "memory-swap" "memory-reservation" "gpus")
|
||||
for filtered_arg in "${filtered_args[@]}"; do
|
||||
DOCKER_ARGS=$(sed -e "s/--${filtered_arg}=[[:graph:]]\+[[:blank:]]\?//g" <<<"$DOCKER_ARGS")
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user