Skip to content

Commit 7c957a1

Browse files
committed
docs: add import command reference
Signed-off-by: ChengyuZhu6 <[email protected]>
1 parent 8b89eab commit 7c957a1

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/command-reference.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ It does not necessarily mean that the corresponding features are missing in cont
4444
- [:whale: nerdctl push](#whale-nerdctl-push)
4545
- [:whale: nerdctl load](#whale-nerdctl-load)
4646
- [:whale: nerdctl save](#whale-nerdctl-save)
47+
- [:whale: nerdctl import](#whale-nerdctl-import)
4748
- [:whale: nerdctl tag](#whale-nerdctl-tag)
4849
- [:whale: nerdctl rmi](#whale-nerdctl-rmi)
4950
- [:whale: nerdctl image inspect](#whale-nerdctl-image-inspect)
@@ -904,6 +905,19 @@ Flags:
904905
- :nerd_face: `--platform=(amd64|arm64|...)`: Export content for a specific platform
905906
- :nerd_face: `--all-platforms`: Export content for all platforms
906907

908+
### :whale: nerdctl import
909+
910+
Import the contents from a tarball to create a filesystem image.
911+
912+
Usage: `nerdctl import [OPTIONS] file|URL|- [REPOSITORY[:TAG]]`
913+
914+
Flags:
915+
916+
- :whale: `-m, --message`: Set commit message for imported image
917+
- :nerd_face: `--platform=(linux/amd64|linux/arm64|...)`: Set platform for the imported image
918+
919+
Unimplemented `docker import` flags: `--change`
920+
907921
### :whale: nerdctl tag
908922

909923
Create a tag TARGET\_IMAGE that refers to SOURCE\_IMAGE.
@@ -1900,7 +1914,6 @@ Container management:
19001914

19011915
Image:
19021916

1903-
- `docker import`
19041917
- `docker trust *` (Instead, nerdctl supports `nerdctl pull --verify=cosign|notation` and `nerdctl push --sign=cosign|notation`. See [`./cosign.md`](./cosign.md) and [`./notation.md`](./notation.md).)
19051918

19061919
Network management:

0 commit comments

Comments
 (0)