Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions tests/integration/userns.bats
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,25 @@ function teardown() {
# is deleted during the namespace cleanup.
run ! ip link del dummy0
}

@test "checkpoint userns container with non default host id" {
requires criu root

runc run -d --console-socket "$CONSOLE_SOCKET" test_busybox
[ "$status" -eq 0 ]

testcontainer test_busybox running

runc checkpoint --work-path ./work-dir test_busybox
[ "$status" -eq 0 ]

testcontainer test_busybox checkpointed

# we need to chown images because child process can try to read them.
chown -R 100000:200000 ./checkpoint

runc restore -d --work-path ./work-dir --console-socket "$CONSOLE_SOCKET" test_busybox
[ "$status" -eq 0 ]

testcontainer test_busybox running
}
Loading