Skip to content

Commit a814a73

Browse files
Fahed DORGAAfahedouch
authored andcommitted
cp cmd
Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com> fixes Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com> fixes Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
1 parent 77276ff commit a814a73

File tree

7 files changed

+821
-1
lines changed

7 files changed

+821
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,12 @@ It does not necessarily mean that the corresponding features are missing in cont
249249
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
250250
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
251251

252+
252253
- [Container management](#container-management)
253254
- [:whale: :blue_square: nerdctl run](#whale-blue_square-nerdctl-run)
254255
- [:whale: :blue_square: nerdctl exec](#whale-blue_square-nerdctl-exec)
255256
- [:whale: :blue_square: nerdctl create](#whale-blue_square-nerdctl-create)
257+
- [:whale: :blue_square: nerdctl cp](#whale-blue_square-nerdctl-cp)
256258
- [:whale: :blue_square: nerdctl ps](#whale-blue_square-nerdctl-ps)
257259
- [:whale: :blue_square: nerdctl inspect](#whale-blue_square-nerdctl-inspect)
258260
- [:whale: nerdctl logs](#whale-nerdctl-logs)
@@ -614,6 +616,7 @@ Flags:
614616

615617
Unimplemented `docker exec` flags: `--detach-keys`
616618

619+
617620
### :whale: :blue_square: nerdctl create
618621
Create a new container.
619622

@@ -623,6 +626,20 @@ Usage: `nerdctl create [OPTIONS] IMAGE [COMMAND] [ARG...]`
623626

624627
The `nerdctl create` command similar to `nerdctl run -d` except the container is never started. You can then use the `nerdctl start <container_id>` command to start the container at any point.
625628

629+
### :whale: nerdctl cp
630+
Copy files/folders between a running container and the local filesystem
631+
632+
Usage:
633+
- `nerdctl cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-`
634+
- `nerdctl cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH`
635+
636+
Flags:
637+
- :whale: `-L, --follow-link` Always follow symbol link in SRC_PATH.
638+
- :whale: `-a, --archive` Archive mode (copy all uid/gid information).
639+
- :nerd_face: `-q, --quiet` Suppress progress output during copy. Progress output is automatically suppressed if no terminal is attached.
640+
- :warning: This command is not designed to be used with untrusted containers. Unexpected behavior of `nerdctl cp` are not treated as a vulnerability. Users must be conscious of that.
641+
642+
626643
### :whale: :blue_square: nerdctl ps
627644
List containers.
628645

@@ -1414,7 +1431,6 @@ See [`./docs/config.md`](./docs/config.md).
14141431
## Unimplemented Docker commands
14151432
Container management:
14161433
- `docker attach`
1417-
- `docker cp`
14181434
- `docker diff`
14191435
- `docker rename`
14201436

0 commit comments

Comments
 (0)