一 Dockerfile文件内容
FROM alpine:latest
二 实战
[root@localhost app]# docker build -t test .
Sending build context to Docker daemon 2.56kB
Step 1/1 : FROM alpine:latest
---> 053cde6e8953
Successfully built 053cde6e8953
Successfully tagged test:latest
[root@localhost app]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
cakin24/test 0.2 dea19e48db1f 5 hours ago 1.13MB
33 0.1 dea19e48db1f 5 hours ago 1.13M