提交(commit)

简介

从一个改经更改了的的容器,创建一个容器。

使用示例

$ docker commit c771ec535bc8 tubuntu
sha256:98f8033cf552109d7889b87f5e5a3fa77d75063faddf6a6daffbd069b1de4285

$ docker image ls | grep tubuntu
tubuntu                   latest              98f8033cf552        Less than a second ago   673MB

选项

Options:
  -a, --author string    Author (e.g., "John Hannibal Smith <[email protected]>")
  -c, --change list      Apply Dockerfile instruction to the created image
  -m, --message string   Commit message
  -p, --pause            Pause container during commit (default true)

results matching ""

    No results matching ""