docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]] -a :提交的镜像作者; -c :使用Dockerfile指令来创建镜像; -m :提交时的说明文字; -p :在commit时,将容器暂停。 docker commit -a "GoslingWu" -m "the is image" [容器id] mymysql:1.0 //查询镜像 docker images