You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/command-reference.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -424,6 +424,39 @@ container stats --no-stream web
424
424
container stats --format json --no-stream web
425
425
```
426
426
427
+
### `container copy (cp)`
428
+
429
+
Copies files between a container and the local filesystem. The container must be running. One of the source or destination must be a container reference in the form `container_id:path`.
430
+
431
+
**Usage**
432
+
433
+
```bash
434
+
container copy [--debug] <source><destination>
435
+
```
436
+
437
+
**Arguments**
438
+
439
+
*`<source>`: Source path (local path or `container_id:path`)
440
+
*`<destination>`: Destination path (local path or `container_id:path`)
The path format uses a colon to distinguish container paths from local paths: `container_id:/path/in/container`. One of the source or destination must always be a container reference. The container must be running for the copy to succeed.
87
+
63
88
## Build and run a multiplatform image
64
89
65
90
Using the [project from the tutorial example](tutorial.md#set-up-a-simple-project), you can create an image to use both on Apple silicon Macs and on x86-64 servers.
0 commit comments