Fix typo in checkpoint/restore related texts

Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Adrian Reber
2019-06-27 07:10:27 +00:00
parent 217f2e77f8
commit 1a32074884
2 changed files with 3 additions and 5 deletions

View File

@ -61,7 +61,7 @@ func restoreCmd(c *cliconfig.RestoreValues, cmd *cobra.Command) error {
defer runtime.DeferredShutdown(false) defer runtime.DeferredShutdown(false)
if c.Import == "" && c.Name != "" { 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 { if c.Name != "" && c.TcpEstablished {

View File

@ -792,10 +792,8 @@ type ContainerCheckpointOptions struct {
// TCPEstablished tells the API to checkpoint a container // TCPEstablished tells the API to checkpoint a container
// even if it contains established TCP connections // even if it contains established TCP connections
TCPEstablished bool TCPEstablished bool
// Export tells the API to write the checkpoint image to // TargetFile tells the API to read (or write) the checkpoint image
// the filename set in TargetFile // from (or to) the filename set in TargetFile
// Import tells the API to read the checkpoint image from
// the filename set in TargetFile
TargetFile string TargetFile string
// Name tells the API that during restore from an exported // Name tells the API that during restore from an exported
// checkpoint archive a new name should be used for the // checkpoint archive a new name should be used for the