Skip to content

Commit d2af0d9

Browse files
committed
Allow to add any args when doing a make run
`make DOCKERD_ARGS=--init binary run` should start the daemon with `--init` as flags (with any other "automagically" added ones). Signed-off-by: Vincent Demeester <[email protected]>
1 parent 71cd53e commit d2af0d9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ DOCKER_ENVS := \
4343
-e DOCKER_REMAP_ROOT \
4444
-e DOCKER_STORAGE_OPTS \
4545
-e DOCKER_USERLANDPROXY \
46+
-e DOCKERD_ARGS \
4647
-e TEST_INTEGRATION_DIR \
4748
-e TESTDIRS \
4849
-e TESTFLAGS \

hack/make/run

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ if [ -n "$DOCKER_PORT" ]; then
2828
listen_port="${ports[-1]}"
2929
fi
3030

31-
extra_params=""
31+
extra_params="$DOCKERD_ARGS"
3232
if [ "$DOCKER_REMAP_ROOT" ]; then
33-
extra_params="--userns-remap $DOCKER_REMAP_ROOT"
33+
extra_params="$extra_params --userns-remap $DOCKER_REMAP_ROOT"
3434
fi
3535

3636
args="--debug \

0 commit comments

Comments
 (0)