diff options
author | TomSweeneyRedHat <tsweeney@redhat.com> | 2019-02-13 19:22:29 -0500 |
---|---|---|
committer | TomSweeneyRedHat <tsweeney@redhat.com> | 2019-02-14 15:03:11 -0500 |
commit | a7a691809a3125cce691c7934a98a2511b9cb6db (patch) | |
tree | 0858caddc0d93f7a8fe2ae4f3654a822c97ec66f /docs/podman-create.1.md | |
parent | dd82acd8ba02be51ec5fea65584e1f7b2036d7c8 (diff) | |
download | podman-a7a691809a3125cce691c7934a98a2511b9cb6db.tar.gz podman-a7a691809a3125cce691c7934a98a2511b9cb6db.tar.bz2 podman-a7a691809a3125cce691c7934a98a2511b9cb6db.zip |
Add examples for Cobra
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
First pass of entries for the Examples listed in the Cobra
Help. Will add others in following PR's.
Diffstat (limited to 'docs/podman-create.1.md')
-rw-r--r-- | docs/podman-create.1.md | 18 |
1 files changed, 18 insertions, 0 deletions
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 |