gvisor/runsc/cmd
Justine Olshan c05660373e Moved restore code out of create and made to be called after create.
Docker expects containers to be created before they are restored.
However, gVisor restoring requires specificactions regarding the kernel
and the file system. These actions were originally in booting the sandbox.

Now setting up the file system is deferred until a call to a call to
runsc start. In the restore case, the kernel is destroyed and a new kernel
is created in the same process, as we need the same process for Docker.

These changes required careful execution of concurrent processes which
required the use of a channel.

Full docker integration still needs the ability to restore into the same
container.

PiperOrigin-RevId: 205161441
Change-Id: Ie1d2304ead7e06855319d5dc310678f701bd099f
2018-07-18 16:58:30 -07:00
..
BUILD runsc: Add the "wait" subcommand. 2018-06-28 14:56:36 -07:00
boot.go Moved restore code out of create and made to be called after create. 2018-07-18 16:58:30 -07:00
capability.go Fix lint errors 2018-06-25 10:41:27 -07:00
checkpoint.go Moved restore code out of create and made to be called after create. 2018-07-18 16:58:30 -07:00
cmd.go Error out if spec is invalid 2018-06-28 09:57:27 -07:00
create.go Moved restore code out of create and made to be called after create. 2018-07-18 16:58:30 -07:00
debug.go Add 'runsc debug' command 2018-06-20 13:31:31 -07:00
delete.go Supress error when deleting non-existing container with --force 2018-05-29 17:58:12 -07:00
delete_test.go runsc: Support abbreviated container IDs. 2018-06-06 16:13:53 -07:00
events.go runsc: Enable container creation within existing sandboxes. 2018-06-19 21:44:33 -07:00
exec.go runsc: Enable container creation within existing sandboxes. 2018-06-19 21:44:33 -07:00
exec_test.go Check in gVisor. 2018-04-28 01:44:26 -04:00
gofer.go Error out if spec is invalid 2018-06-28 09:57:27 -07:00
kill.go runsc/cmd: fix kill signal parsing 2018-06-15 11:06:07 -07:00
list.go Refactor the Sandbox package into Sandbox + Container. 2018-05-15 10:18:03 -07:00
path.go Check in gVisor. 2018-04-28 01:44:26 -04:00
pause.go Added code for a pause command for a container process. 2018-06-15 16:09:09 -07:00
ps.go runsc: Enable container creation within existing sandboxes. 2018-06-19 21:44:33 -07:00
restore.go Moved restore code out of create and made to be called after create. 2018-07-18 16:58:30 -07:00
resume.go Added a resume command to unpause a paused container. 2018-06-19 15:23:36 -07:00
run.go Refactor the Sandbox package into Sandbox + Container. 2018-05-15 10:18:03 -07:00
start.go Refactor the Sandbox package into Sandbox + Container. 2018-05-15 10:18:03 -07:00
state.go Refactor the Sandbox package into Sandbox + Container. 2018-05-15 10:18:03 -07:00
wait.go runsc: `runsc wait` print wait status. 2018-07-03 11:58:12 -07:00