root@vm:/home/jennifer# docker build -t cutejaneii/curl2_alpine:3.7 .
Sending build context to Docker daemon 5.12kB
Step 1/4 : FROM alpine:3.7
---> 6d1ef012b567
Step 2/4 : RUN apk add --no-cache curl
---> Using cache
---> ebd37ddf2c7c
Step 3/4 : RUN mkdir my_data
---> Running in abaf1b78c167
Removing intermediate container abaf1b78c167
---> 5dc5243126ed
Step 4/4 : ENTRYPOINT ["/usr/bin/curl"]
---> Running in 520bffdaf310
Removing intermediate container 520bffdaf310
---> cbf3378be8a3
Successfully built cbf3378be8a3
Successfully tagged cutejaneii/curl2_alpine:3.7
以一張示意圖來看curl_alpine:3.7,就會是這個樣子
利用docker images -a查看映像檔的資訊
root@vm:/home/jennifer# docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> 5dc5243126ed 2 hours ago 5.6MB
cutejaneii/curl2_alpine 3.7 cbf3378be8a3 2 hours ago 5.6MB
cutejaneii/curl_alpine 3.7 119f0ca622ff 2 hours ago 5.6MB
<none> <none> ebd37ddf2c7c 2 hours ago 5.6MB
alpine 3.7 6d1ef012b567 15 months ago 4.21MB