2017-04-06 14:56:30
shihuan
|
[root@dokcer nginxtra]# docker build -t shihuan/nginx1.11.12:1.0 -f /opt/nginxtra/Dockerfile .
Sending build context to Docker daemon 138.7 MB Step 1/50 : FROM centos7base:7.3.1611 ---> 94e0f7d51237 Step 2/50 : MAINTAINER yushibo <shihuan830619@163.com> ---> Using cache ---> e4b99d11a5be Step 3/50 : COPY Centos-7.repo /etc/yum.repos.d/ ---> Using cache ---> 37b37daf728d Step 4/50 : RUN yum clean all ---> Using cache ---> 0f28728b0e74 Step 5/50 : RUN yum makecache ---> Using cache ---> b3527e074563 Step 6/50 : RUN yum install -y deltarpm ---> Using cache ---> 4ae474e8276e Step 7/50 : RUN yum install -y gcc gcc-c++ ---> Running in 4760436f90c8 Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: mirrors.btte.net * extras: mirrors.btte.net * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package gcc.x86_64 0:4.8.5-11.el7 will be installed --> Processing Dependency: libgomp = 4.8.5-11.el7 for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: cpp = 4.8.5-11.el7 for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.8.5-11.el7.x86_64 ---> Package gcc-c++.x86_64 0:4.8.5-11.el7 will be installed --> Processing Dependency: libstdc++-devel = 4.8.5-11.el7 for package: gcc-c++-4.8.5-11.el7.x86_64 --> Running transaction check ---> Package cpp.x86_64 0:4.8.5-11.el7 will be installed ---> Package glibc-devel.x86_64 0:2.17-157.el7_3.1 will be installed --> Processing Dependency: glibc-headers = 2.17-157.el7_3.1 for package: glibc-devel-2.17-157.el7_3.1.x86_64 --> Processing Dependency: glibc = 2.17-157.el7_3.1 for package: glibc-devel-2.17-157.el7_3.1.x86_64 --> Processing Dependency: glibc-headers for package: glibc-devel-2.17-157.el7_3.1.x86_64 ---> Package libgomp.x86_64 0:4.8.5-11.el7 will be installed ---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed ---> Package libstdc++-devel.x86_64 0:4.8.5-11.el7 will be installed ---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed --> Running transaction check ---> Package glibc.x86_64 0:2.17-157.el7 will be updated --> Processing Dependency: glibc = 2.17-157.el7 for package: glibc-common-2.17-157.el7.x86_64 ---> Package glibc.x86_64 0:2.17-157.el7_3.1 will be an update ---> Package glibc-headers.x86_64 0:2.17-157.el7_3.1 will be installed --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-157.el7_3.1.x86_64 --> Processing Dependency: kernel-headers for package: glibc-headers-2.17-157.el7_3.1.x86_64 --> Running transaction check ---> Package glibc-common.x86_64 0:2.17-157.el7 will be updated ---> Package glibc-common.x86_64 0:2.17-157.el7_3.1 will be an update ---> Package kernel-headers.x86_64 0:3.10.0-514.10.2.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: gcc x86_64 4.8.5-11.el7 base 16 M gcc-c++ x86_64 4.8.5-11.el7 base 7.2 M Installing for dependencies: cpp x86_64 4.8.5-11.el7 base 5.9 M glibc-devel x86_64 2.17-157.el7_3.1 updates 1.1 M glibc-headers x86_64 2.17-157.el7_3.1 updates 668 k kernel-headers x86_64 3.10.0-514.10.2.el7 updates 4.8 M libgomp x86_64 4.8.5-11.el7 base 152 k libmpc x86_64 1.0.1-3.el7 base 51 k libstdc++-devel x86_64 4.8.5-11.el7 base 1.5 M mpfr x86_64 3.1.1-4.el7 base 203 k Updating for dependencies: glibc x86_64 2.17-157.el7_3.1 updates 3.6 M glibc-common x86_64 2.17-157.el7_3.1 updates 11 M Transaction Summary ================================================================================ Install 2 Packages (+8 Dependent packages) Upgrade ( 2 Dependent packages) Total download size: 53 M Downloading packages: -------------------------------------------------------------------------------- Total 4.0 MB/s | 53 MB 00:13 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : glibc-2.17-157.el7_3.1.x86_64 1/14 warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew error: lua script failed: [string "%triggerin(glibc-common-2.17-157.el7.x86_64)"]:1: attempt to compare number with nil Non-fatal <unknown> scriptlet failure in rpm package glibc-2.17-157.el7_3.1.x86_64 Updating : glibc-common-2.17-157.el7_3.1.x86_64 2/14 Installing : mpfr-3.1.1-4.el7.x86_64 3/14 Installing : libmpc-1.0.1-3.el7.x86_64 4/14 Installing : cpp-4.8.5-11.el7.x86_64 5/14 Installing : libgomp-4.8.5-11.el7.x86_64 6/14 Installing : libstdc++-devel-4.8.5-11.el7.x86_64 7/14 Installing : kernel-headers-3.10.0-514.10.2.el7.x86_64 8/14 Installing : glibc-headers-2.17-157.el7_3.1.x86_64 9/14 Installing : glibc-devel-2.17-157.el7_3.1.x86_64 10/14 Installing : gcc-4.8.5-11.el7.x86_64 11/14 Installing : gcc-c++-4.8.5-11.el7.x86_64 12/14 Cleanup : glibc-2.17-157.el7.x86_64 13/14 Cleanup : glibc-common-2.17-157.el7.x86_64 14/14 Rpmdb checksum is invalid: dCDPT(pkg checksums): glibc-headers.x86_64 0:2.17-157.el7_3.1 - u The command '/bin/sh -c yum install -y gcc gcc-c++' returned a non-zero code: 1 |