Skip to content

Commit

Permalink
Merge pull request #2421 from stewart-ibm/docker-init
Browse files Browse the repository at this point in the history
ci/docker: Run containers with --init
  • Loading branch information
stewartsmith committed Oct 29, 2018
2 parents 0487ed8 + 9c20ae2 commit 95ec118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function run_docker
else
BINDARG="--mount=type=bind,src=${PWD},dst=${PWD}"
fi
$DOCKER_PREFIX docker run --cap-add=sys_admin --net=host --rm=true \
$DOCKER_PREFIX docker run --init --cap-add=sys_admin --net=host --rm=true \
--user="${USER}" -w "${PWD}" "${BINDARG}" \
-t $1 $2
}
Expand Down

0 comments on commit 95ec118

Please sign in to comment.