通常有两种镜像制作方法:
1、commit当前的container 生成镜像
2、制作Dockerfile文件
命令: docker images [OPTIONS] [REPOSITORY[:TAG]]
例:
$docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d5836748dfaa ubuntu:16.04 "/bin/bash" 6 weeks ago Up 6 seconds ubuntu1
$docker commit d5836748dfaa myubuntu
sha256:391023b33209b009b3329e88eaf195405c5ee6f3f392b1f4b88979e1a036e2ce
$docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
myubuntu latest 391023b33209 4 seconds ago 151MB