最简单的docker build

一 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.13MB
redis               latest              8f2e175b3bd1        6 days ago          107MB
clearlinux          latest              32685d114002        7 days ago          62.5MB
busybox             latest              6ad733544a63        7 days ago          1.13MB
test                latest              053cde6e8953        7 days ago          3.96MB
alpine              latest              053cde6e8953        7 days ago          3.96MB


你可能感兴趣的:(Docker)