Skip to content

Commit

Permalink
Test that "ctr run --user" actually works correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed May 26, 2024
1 parent 3dd6e1b commit 76ebc50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test-debs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ cat <<-'EOBASH'
ctr image pull docker.io/library/hello-world:latest
ctr run --rm docker.io/library/hello-world:latest hello
busybox='docker.io/library/busybox@sha256:5eef5ed34e1e1ff0a4ae850395cbf665c4de6b4b83a32a0bc7bcb998e24e7bbb' # "latest" as of 2024-05-25
ctr image pull "$busybox"
out="$(ctr run --rm --user 1000:1000 "$busybox" bb id)"
[ "$out" = 'uid=1000 gid=1000 groups=1000' ]
# stop "containerd" so dockerd can start it up and we can test the "dockerd starts/manages containerd" behavior
kill "$pid"
wait "$pid"
Expand Down

0 comments on commit 76ebc50

Please sign in to comment.