Skip to content

Commit

Permalink
Allow to add any args when doing a make run
Browse files Browse the repository at this point in the history
`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]>
  • Loading branch information
vdemeester committed Jun 1, 2018
1 parent 71cd53e commit d2af0d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ DOCKER_ENVS := \
-e DOCKER_REMAP_ROOT \
-e DOCKER_STORAGE_OPTS \
-e DOCKER_USERLANDPROXY \
-e DOCKERD_ARGS \
-e TEST_INTEGRATION_DIR \
-e TESTDIRS \
-e TESTFLAGS \
Expand Down
4 changes: 2 additions & 2 deletions hack/make/run
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ if [ -n "$DOCKER_PORT" ]; then
listen_port="${ports[-1]}"
fi

extra_params=""
extra_params="$DOCKERD_ARGS"
if [ "$DOCKER_REMAP_ROOT" ]; then
extra_params="--userns-remap $DOCKER_REMAP_ROOT"
extra_params="$extra_params --userns-remap $DOCKER_REMAP_ROOT"
fi

args="--debug \
Expand Down

0 comments on commit d2af0d9

Please sign in to comment.