summaryrefslogtreecommitdiff
path: root/pkg/checkpoint
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-18 23:51:12 +0100
committerGitHub <noreply@github.com>2021-11-18 23:51:12 +0100
commit319d3fba6d86dff7b19c5315bbe3ba0b67a97c81 (patch)
tree0db6ef4e6ba9bcfd178017ea63d3c2989fbd6aa9 /pkg/checkpoint
parentc26af00c4bf5aec458868b5afd44e7a88ddcf46d (diff)
parent0dae50f1d3af16e625ca7e2f272fb2ce63682c83 (diff)
downloadpodman-319d3fba6d86dff7b19c5315bbe3ba0b67a97c81.tar.gz
podman-319d3fba6d86dff7b19c5315bbe3ba0b67a97c81.tar.bz2
podman-319d3fba6d86dff7b19c5315bbe3ba0b67a97c81.zip
Merge pull request #12354 from Luap99/exit-command
Do not store the exit command in container config
Diffstat (limited to 'pkg/checkpoint')
-rw-r--r--pkg/checkpoint/checkpoint_restore.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/pkg/checkpoint/checkpoint_restore.go b/pkg/checkpoint/checkpoint_restore.go
index 3a300daaf..85fe6a77e 100644
--- a/pkg/checkpoint/checkpoint_restore.go
+++ b/pkg/checkpoint/checkpoint_restore.go
@@ -239,11 +239,6 @@ func CRImportCheckpoint(ctx context.Context, runtime *libpod.Runtime, restoreOpt
}
}
- // Check if the ExitCommand points to the correct container ID
- if containerConfig.ExitCommand[len(containerConfig.ExitCommand)-1] != containerConfig.ID {
- return nil, errors.Errorf("'ExitCommandID' uses ID %s instead of container ID %s", containerConfig.ExitCommand[len(containerConfig.ExitCommand)-1], containerConfig.ID)
- }
-
containers = append(containers, container)
return containers, nil
}