8000 Enable checkpoint/restore of containers with tty · moby/moby@64b3b13 · GitHub
[go: up one dir, main page]

Skip to content

Commit 64b3b13

Browse files
committed
Enable checkpoint/restore of containers with tty
CRIU supports checkpoint and restore of tty devices since version 2.12 which was released on 8th of March 2017. Support for this functionality was implemented with opencontainers/runc@1c43d09 (checkpoint: add support for containers with terminals) and containerd/containerd@60daa41 (Allow to checkpoint and restore a container with console). Therefore, we can enable the support in moby/docker. Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
1 parent f76d6a0 commit 64b3b13

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

daemon/checkpoint.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ func (daemon *Daemon) CheckpointCreate(name string, config types.CheckpointCreat
6363
return fmt.Errorf("Container %s not running", name)
6464
}
6565

66-
if container.Config.Tty {
67-
return fmt.Errorf("checkpoint not support on containers with tty")
68-
}
69-
7066
if !validCheckpointNamePattern.MatchString(config.CheckpointID) {
7167
return fmt.Errorf("Invalid checkpoint ID (%s), only %s are allowed", config.CheckpointID, validCheckpointNameChars)
7268
}

0 commit comments

Comments
 (0)
0