Repository navigation
runsc: support checkpoint/restore with --no-root-container - #15551
Conversation
475c4e5 to
5725aea
Compare
|
Hi, I’m building a sandbox for AI agents using gVisor. With checkpoint/restore support for --no-root-container, could we allow the sandbox to start preparing for restore before checkpoint files are available, and provide those files later when restoring the application container? |
@jingyugao Yes, that is the point of this feature. |
5725aea to
3284113
Compare
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates gvisor#13948 Signed-off-by: Jing Chen <[email protected]>
3284113 to
26f4302
Compare
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 26f4302 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place: runsc restore --no-root-container --image-path=<img> <sandbox> runsc restore --image-path=<img> <container> # once per container Also fix restoring containers without a name, in any sandbox. Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead. Updates #13948 FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 26f4302 PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:
runsc restore --no-root-container --image-path=
# once per container
runsc restore --image-path=
Also fix restoring containers without a name, in any sandbox.
Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.
Updates #13948