Skip to content

Commit 07613dd

Browse files
Merge pull request containers#21724 from rhatdan/docs11
[CI:DOCS] Fix up example description of podman-cp.1.md
2 parents f63953d + ee078a7 commit 07613dd

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

docs/source/markdown/podman-cp.1.md

+29-29
Original file line numberDiff line numberDiff line change
@@ -101,35 +101,35 @@ the cp command.
101101

102102
## EXAMPLES
103103

104-
- Copy a file from host to a container.
105-
```
106-
podman cp /myapp/app.conf containerID:/myapp/app.conf
107-
```
108-
109-
- Copy a file from a container to a directory on another container.
110-
```
111-
podman cp containerID1:/myfile.txt containerID2:/tmp
112-
```
113-
114-
- Copy a directory on a container to a directory on the host.
115-
```
116-
podman cp containerID:/myapp/ /myapp/
117-
```
118-
119-
- Copy the contents of a directory on a container to a directory on the host.
120-
```
121-
podman cp containerID:/home/myuser/. /home/myuser/
122-
```
123-
124-
- Copy a directory on a container into a directory on another.
125-
```
126-
podman cp containerA:/myapp containerB:/newapp
127-
```
128-
129-
- Stream a tar archive from `STDIN` to a container.
130-
```
131-
podman cp - containerID:/myfiles.tar.gz < myfiles.tar.gz
132-
```
104+
Copy a file from the host to a container:
105+
```
106+
podman cp /myapp/app.conf containerID:/myapp/app.conf
107+
```
108+
109+
Copy a file from a container to a directory on another container:
110+
```
111+
podman cp containerID1:/myfile.txt containerID2:/tmp
112+
```
113+
114+
Copy a directory on a container to a directory on the host:
115+
```
116+
podman cp containerID:/myapp/ /myapp/
117+
```
118+
119+
Copy the contents of a directory on a container to a directory on the host:
120+
```
121+
podman cp containerID:/home/myuser/. /home/myuser/
122+
```
123+
124+
Copy a directory on a container into a directory on another:
125+
```
126+
podman cp containerA:/myapp containerB:/newapp
127+
```
128+
129+
Stream a tar archive from `STDIN` to a container:
130+
```
131+
podman cp - containerID:/myfiles.tar.gz < myfiles.tar.gz
132+
```
133133

134134
## SEE ALSO
135135
**[podman(1)](podman.1.md)**, **[podman-mount(1)](podman-mount.1.md)**, **[podman-unmount(1)](podman-unmount.1.md)**

0 commit comments

Comments
 (0)