Skip to content

Commit 05f9a13

Browse files
committed
docs: add import command reference
Signed-off-by: ChengyuZhu6 <[email protected]>
1 parent ab6f561 commit 05f9a13

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/command-reference.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ It does not necessarily mean that the corresponding features are missing in cont
4343
- [:whale: nerdctl push](#whale-nerdctl-push)
4444
- [:whale: nerdctl load](#whale-nerdctl-load)
4545
- [:whale: nerdctl save](#whale-nerdctl-save)
46+
- [:whale: nerdctl import](#whale-nerdctl-import)
4647
- [:whale: nerdctl tag](#whale-nerdctl-tag)
4748
- [:whale: nerdctl rmi](#whale-nerdctl-rmi)
4849
- [:whale: nerdctl image inspect](#whale-nerdctl-image-inspect)
@@ -899,6 +900,19 @@ Flags:
899900
- :nerd_face: `--platform=(amd64|arm64|...)`: Export content for a specific platform
900901
- :nerd_face: `--all-platforms`: Export content for all platforms
901902

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

904918
Create a tag TARGET\_IMAGE that refers to SOURCE\_IMAGE.
@@ -1894,7 +1908,7 @@ Container management:
18941908

18951909
Image:
18961910

1897-
- `docker export` and `docker import`
1911+
- `docker export`
18981912
- `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).)
18991913
- `docker manifest *`
19001914

0 commit comments

Comments
 (0)