Skip to content

Commit d4d34ac

Browse files
committed
docs: add import command reference
Signed-off-by: ChengyuZhu6 <[email protected]>
1 parent 1728acd commit d4d34ac

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)
@@ -905,6 +906,19 @@ Flags:
905906
- :nerd_face: `--platform=(amd64|arm64|...)`: Export content for a specific platform
906907
- :nerd_face: `--all-platforms`: Export content for all platforms
907908

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

910924
Create a tag TARGET\_IMAGE that refers to SOURCE\_IMAGE.
@@ -1919,7 +1933,6 @@ Container management:
19191933

19201934
Image:
19211935

1922-
- `docker import`
19231936
- `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).)
19241937

19251938
Network management:

0 commit comments

Comments
 (0)