Fix up example description of podman-cp.1.md

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2024-02-17 13:36:23 -05:00
parent fbb4d5dca6
commit 7e611f60b3

View File

@ -101,35 +101,35 @@ the cp command.
## EXAMPLES
- Copy a file from host to a container.
```
podman cp /myapp/app.conf containerID:/myapp/app.conf
```
Copy a file from host to a container:
```
podman cp /myapp/app.conf containerID:/myapp/app.conf
```
- Copy a file from a container to a directory on another container.
```
podman cp containerID1:/myfile.txt containerID2:/tmp
```
Copy a file from a container to a directory on another container:
```
podman cp containerID1:/myfile.txt containerID2:/tmp
```
- Copy a directory on a container to a directory on the host.
```
podman cp containerID:/myapp/ /myapp/
```
Copy a directory on a container to a directory on the host:
```
podman cp containerID:/myapp/ /myapp/
```
- Copy the contents of a directory on a container to a directory on the host.
```
podman cp containerID:/home/myuser/. /home/myuser/
```
Copy the contents of a directory on a container to a directory on the host:
```
podman cp containerID:/home/myuser/. /home/myuser/
```
- Copy a directory on a container into a directory on another.
```
podman cp containerA:/myapp containerB:/newapp
```
Copy a directory on a container into a directory on another:
```
podman cp containerA:/myapp containerB:/newapp
```
- Stream a tar archive from `STDIN` to a container.
```
podman cp - containerID:/myfiles.tar.gz < myfiles.tar.gz
```
Stream a tar archive from `STDIN` to a container:
```
podman cp - containerID:/myfiles.tar.gz < myfiles.tar.gz
```
## SEE ALSO
**[podman(1)](podman.1.md)**, **[podman-mount(1)](podman-mount.1.md)**, **[podman-unmount(1)](podman-unmount.1.md)**