You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the Docker daemon is running in experimental mode, docker start accepts --checkpoint and --checkpoint-dir parameters to restore from a checkpoint:
Usage: docker start [OPTIONS] CONTAINER [CONTAINER...]
Start one or more stopped containers
Options:
-a, --attach Attach STDOUT/STDERR and forward signals
--checkpoint string Restore from this checkpoint
--checkpoint-dir string Use a custom checkpoint storage directory
--detach-keys string Override the key sequence for detaching a container
--help Print usage
-i, --interactive Attach container's STDIN
However, docker restart does currently not accept --checkpoint and --checkpoint-dir:
Usage: docker restart [OPTIONS] CONTAINER [CONTAINER...]
Restart one or more containers
Options:
--help Print usage
-t, --time int Seconds to wait for stop before killing the container (default 10)
So, in order to restart a running container from a checkpoint, it's necessary to first stop the container...
docker stop <name>
... and then start it from the checkpoint:
docker start --checkpoint <checkpoint>
My suggestion is to add support for --checkpoint and --checkpoint-dir to restart; or, more precisely, to the daemon's ContainerRestart function, which basically just stops and then starts the container, and add it to the API, the client, and the CLI accordingly.
My use case is an experimental test environment which restarts from a checkpoint many many times (to establish a consistent starting state for every single test). Restarting with a single API call instead of two will shave off a few ms per test, which adds up over hundreds or thousands of tests.
The text was updated successfully, but these errors were encountered:
Description
If the Docker daemon is running in experimental mode,
docker start
accepts--checkpoint
and--checkpoint-dir
parameters to restore from a checkpoint:However,
docker restart
does currently not accept--checkpoint
and--checkpoint-dir
:So, in order to restart a running container from a checkpoint, it's necessary to first stop the container...
... and then start it from the checkpoint:
My suggestion is to add support for
--checkpoint
and--checkpoint-dir
to restart; or, more precisely, to the daemon's ContainerRestart function, which basically just stops and then starts the container, and add it to the API, the client, and the CLI accordingly.My use case is an experimental test environment which restarts from a checkpoint many many times (to establish a consistent starting state for every single test). Restarting with a single API call instead of two will shave off a few ms per test, which adds up over hundreds or thousands of tests.
The text was updated successfully, but these errors were encountered: