mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Fix typo in checkpoint/restore related texts
Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
@ -61,7 +61,7 @@ func restoreCmd(c *cliconfig.RestoreValues, cmd *cobra.Command) error {
|
||||
defer runtime.DeferredShutdown(false)
|
||||
|
||||
if c.Import == "" && c.Name != "" {
|
||||
return errors.Errorf("--name can only used with --import")
|
||||
return errors.Errorf("--name can only be used with --import")
|
||||
}
|
||||
|
||||
if c.Name != "" && c.TcpEstablished {
|
||||
|
@ -792,10 +792,8 @@ type ContainerCheckpointOptions struct {
|
||||
// TCPEstablished tells the API to checkpoint a container
|
||||
// even if it contains established TCP connections
|
||||
TCPEstablished bool
|
||||
// Export tells the API to write the checkpoint image to
|
||||
// the filename set in TargetFile
|
||||
// Import tells the API to read the checkpoint image from
|
||||
// the filename set in TargetFile
|
||||
// TargetFile tells the API to read (or write) the checkpoint image
|
||||
// from (or to) the filename set in TargetFile
|
||||
TargetFile string
|
||||
// Name tells the API that during restore from an exported
|
||||
// checkpoint archive a new name should be used for the
|
||||
|
Reference in New Issue
Block a user