Docker Toolbox-centos:7.2.1511-docker 镜像生成(环境:win10-家庭版-Docker Toolbox)

 

Docker Toolbox-centos:7.2.1511-docker 镜像生成(环境:win10-家庭版-Docker Toolbox)

方式一:各种报 no space left on device  ( 想办法清内存 可能没清到点子上 ;换个了 内存 外存 更大的虚拟机 ;然并卵 )

方式二:主要参考  https://www.cnblogs.com/jsonhc/p/7767669.html

 

贴出 dockerfile 内容:

Docker Toolbox-centos:7.2.1511-docker 镜像生成(环境:win10-家庭版-Docker Toolbox)

 

 

 

FROM centos:7.2.1511
MAINTAINER conn

RUN rpm --rebuilddb && yum install -y e4fsprogs

RUN rpm --rebuilddb && yum install -y yum-utils \
  device-mapper-persistent-data \
    lvm2
RUN rpm --rebuilddb && yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
RUN rpm --rebuilddb && yum install -y docker-ce docker-ce-cli containerd.io

 

Docker Toolbox-centos:7.2.1511-docker 镜像生成(环境:win10-家庭版-Docker Toolbox)

 

 

注:当前环境 每条指令前不加 rpm --rebuilddb &&  时 会报  Rpmdb checksum is invalid: dCDPT(pkg checksums): device-mapper.x86_64 7:1.02.158-2.el7_7.2 - u ( 参考 https://blog.csdn.net/u010483897/article/details/93902613  https://blog.csdn.net/iwalkman/article/details/80836658 

 

Docker Toolbox-centos:7.2.1511-docker 镜像生成(环境:win10-家庭版-Docker Toolbox)

 

 

 

 

 

 

 

Docker Toolbox-centos:7.2.1511-docker 镜像生成(环境:win10-家庭版-Docker Toolbox)

上一篇:apt-get failed:The following signatures were invalid: BADSIG


下一篇:【转】DELPHI开始支持LINUX DOCKER