Docker镜像仓库
1、编写一个Dockerfile [root@iZ2zeir6vcnpz8qw3t455tZ ~] # mkdir Docker [root@iZ2zeir6vcnpz8qw3t455tZ ~] # cd Docker/ [root@iZ2zeir6vcnpz8qw3t455tZ Docker] # cat Dockerfile FROM alpine CMD ping baidu.com 2、打包镜像文件 # -t : tag标签。镜像名字 # . : 当前目录下工作 [root@iZ2zeir6vcnpz8qw3t455tZ Docker] # docker build -t hello . Sending build context to Docker daemon 2 .048kB Step 1 /2 : FROM alpine latest: Pulling from library/alpine cbdbe7a5bc2a: Already exists Digest: sha256:9a839e63dad54c3a6d1834e29692c8492d93f90c59c978c1ed79109ea4fb9a54 Status: Downloaded newer image for alpine:latest --- > f70734b6a266 Step 2 /2 :