mirror of
https://github.com/containers/podman.git
synced 2025-05-20 08:36:23 +08:00
Merge pull request #21724 from rhatdan/docs11
[CI:DOCS] Fix up example description of podman-cp.1.md
This commit is contained in:
@ -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)**
|
||||
|
Reference in New Issue
Block a user