Merge pull request #21724 from rhatdan/docs11

[CI:DOCS] Fix up example description of podman-cp.1.md
This commit is contained in:
openshift-merge-bot[bot]
2024-02-19 21:10:17 +00:00
committed by GitHub

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 the 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)**