commit用于对修改后的容器进行镜像构建docker container commit <container-id> [REPOSITORY[:TAG]]
[root@localhost ~]# docker commit
"docker commit" requires at least 1 and at most 2 arguments.
See 'docker commit --help'.
Usage: docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
Create a new image from a container's changes
Note
平时使用commit的方式较少
网友评论