mirror of
https://github.com/containers/podman.git
synced 2025-08-02 01:09:21 +08:00
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.
This commit is contained in:
@ -76,7 +76,7 @@ e3ce4d93051ceea088d1c242624d659be32cf1667ef62f1d16d6b60193e2c7a8
|
||||
```
|
||||
|
||||
```
|
||||
$ podman commit -q --pause=false reverent_golick image-commited
|
||||
$ podman commit -q --pause=false containerID image-commited
|
||||
e3ce4d93051ceea088d1c242624d659be32cf1667ef62f1d16d6b60193e2c7a8
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user