summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Reber <areber@redhat.com>2019-06-27 07:10:27 +0000
committerAdrian Reber <areber@redhat.com>2019-07-11 14:43:35 +0200
commit1a3207488477876a1f4018bf0df95ed8eaf85afc (patch)
tree538950af44e8e6abdabe23a335afac083c78de08
parent217f2e77f86c95babc9697545e8880af38ec2e89 (diff)
downloadpodman-1a3207488477876a1f4018bf0df95ed8eaf85afc.tar.gz
podman-1a3207488477876a1f4018bf0df95ed8eaf85afc.tar.bz2
podman-1a3207488477876a1f4018bf0df95ed8eaf85afc.zip
Fix typo in checkpoint/restore related texts
Signed-off-by: Adrian Reber <areber@redhat.com>
-rw-r--r--cmd/podman/restore.go2
-rw-r--r--libpod/container_api.go6
2 files changed, 3 insertions, 5 deletions
diff --git a/cmd/podman/restore.go b/cmd/podman/restore.go
index c4146eff0..7ecec24ee 100644
--- a/cmd/podman/restore.go
+++ b/cmd/podman/restore.go
@@ -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 {
diff --git a/libpod/container_api.go b/libpod/container_api.go
index 3dd84b02c..00467d2bf 100644
--- a/libpod/container_api.go
+++ b/libpod/container_api.go
@@ -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