容器技术

十五、通过commit创建镜像

2021-12-08  本文已影响0人  InsaneLoafer

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的方式较少

上一篇 下一篇

猜你喜欢

热点阅读