aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-15 00:07:34 +0100
committerGitHub <noreply@github.com>2019-02-15 00:07:34 +0100
commit81ace5caaca844eda4be48245590ea54bdd0cba3 (patch)
tree31313c4e0ef1730bf89014a1461aa5d6e0a71c65 /docs
parentae8cc41295c4ff6f6f82372221c66c250691e4f6 (diff)
parenta7a691809a3125cce691c7934a98a2511b9cb6db (diff)
downloadpodman-81ace5caaca844eda4be48245590ea54bdd0cba3.tar.gz
podman-81ace5caaca844eda4be48245590ea54bdd0cba3.tar.bz2
podman-81ace5caaca844eda4be48245590ea54bdd0cba3.zip
Merge pull request #2333 from TomSweeneyRedHat/dev/tsweeney/helpexamples
Add examples for Cobra
Diffstat (limited to 'docs')
-rw-r--r--docs/podman-commit.1.md2
-rw-r--r--docs/podman-create.1.md18
2 files changed, 19 insertions, 1 deletions
diff --git a/docs/podman-commit.1.md b/docs/podman-commit.1.md
index 79e14aba6..acde51859 100644
--- a/docs/podman-commit.1.md
+++ b/docs/podman-commit.1.md
@@ -76,7 +76,7 @@ e3ce4d93051ceea088d1c242624d659be32cf1667ef62f1d16d6b60193e2c7a8
```
```
-$ podman commit -q --pause=false reverent_golick image-commited
+$ podman commit -q --pause=false containerID image-commited
e3ce4d93051ceea088d1c242624d659be32cf1667ef62f1d16d6b60193e2c7a8
```
diff --git a/docs/podman-create.1.md b/docs/podman-create.1.md
index 2dffaff3b..342ef59c3 100644
--- a/docs/podman-create.1.md
+++ b/docs/podman-create.1.md
@@ -783,6 +783,24 @@ can override the working directory by using the **-w** option.
## EXAMPLES
+### Create a container using a local image
+
+```
+$ podman create alpine ls
+```
+
+### Create a container using a local image and annotate it
+
+```
+$ podman create --annotation HELLO=WORLD alpine ls
+```
+
+### Create a container using a local image, allocating a pseudo-TTY, keeping stdin open and name it myctr
+
+```
+ podman create -t -i --name myctr alpine ls
+```
+
### Set UID/GID mapping in a new user namespace
Running a container in a new user namespace requires a mapping of