Skip to content

Commit

Permalink
Add -i option to docker run to work around bug on Windows
Browse files Browse the repository at this point in the history
See rancher-sandbox#3239

Signed-off-by: Jan Dubois <[email protected]>
  • Loading branch information
jandubois committed Sep 13, 2023
1 parent 82a9885 commit 1bc6a4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bats/tests/containers/init.bats
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ load '../helpers/load'
}

@test 'run container with init process' {
run ctrctl run --rm --init "$IMAGE_BUSYBOX" ps -ef
# BUG BUG BUG
# The following `ctrctl run` command includes the `-i` option to work around a docker
# bug on Windows: https://github.com/rancher-sandbox/rancher-desktop/issues/3239
# It is harmless in other configurations, but should not be required here.
# BUG BUG BUG
run ctrctl run -i --rm --init "$IMAGE_BUSYBOX" ps -ef
assert_success
# PID USER TIME COMMAND
# 1 root 0:00 /sbin/docker-init -- ps -ef
Expand Down

0 comments on commit 1bc6a4f

Please sign in to comment.