-
Notifications
You must be signed in to change notification settings - Fork 12
Description
I am faced with the problem of the lack of a flag --force-yes.
Using the installation via docker-compose and the docker-compose up --build command, the build broke off with the error: failed to solve: executor failed running [/bin/sh -c apt-get install -y apache2 php5 libapache2-mod-php5 php5-dev php-pear php5-curl curl libaio1]: exit code: 100
`
% docker-compose up --build
[+] Building 9.8s (8/18)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.48kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/debian:jessie 1.4s
=> [ 1/14] FROM docker.io/library/debian:jessie@sha256:32ad5050caffb2c7e969dac873bce2c370015c2256ff984b70c1c08b3a2816a0 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 274B 0.0s
=> CACHED [ 2/14] RUN apt-get update 0.0s
=> CACHED [ 3/14] RUN apt-get -y upgrade 0.0s
=> ERROR [ 4/14] RUN apt-get install -y apache2 php5 libapache2-mod-php5 php5-dev php-pear php5-curl curl libaio1 8.3s
[ 4/14] RUN apt-get install -y apache2 php5 libapache2-mod-php5 php5-dev php-pear php5-curl curl libaio1:
#0 0.769 Reading package lists...
#0 2.742 Building dependency tree...
#0 2.860 Reading state information...
#0 2.980 The following extra packages will be installed:
#0 2.980 apache2-bin apache2-data apache2-utils autoconf automake autopoint
#0 2.980 autotools-dev binutils bsdmainutils build-essential bzip2 ca-certificates
#0 2.980 cpp cpp-4.9 debhelper dh-php5 dpkg-dev fakeroot file g++ g++-4.9 gcc gcc-4.9
#0 2.980 gettext gettext-base groff-base ifupdown intltool-debian isc-dhcp-client
#0 2.980 isc-dhcp-common krb5-locales libalgorithm-c3-perl libalgorithm-diff-perl
#0 2.980 libalgorithm-diff-xs-perl libalgorithm-merge-perl libapr1 libaprutil1
#0 2.980 libaprutil1-dbd-sqlite3 libaprutil1-ldap libarchive-extract-perl libasan1
#0 2.980 libasprintf-dev libasprintf0c2 libatomic1 libbsd0 libc-dev-bin libc6-dev
#0 2.980 libcgi-fast-perl libcgi-pm-perl libcilkrts5 libclass-c3-perl
#0 2.980 libclass-c3-xs-perl libcloog-isl4 libcpan-meta-perl libcroco3 libcurl3
#0 2.980 libdata-optlist-perl libdata-section-perl libdns-export100 libdpkg-perl
#0 2.980 libedit2 libexpat1 libfakeroot libfcgi-perl libfile-fcntllock-perl
#0 2.980 libgcc-4.9-dev libgdbm3 libgettextpo-dev libgettextpo0 libglib2.0-0
#0 2.980 libglib2.0-data libgomp1 libgssapi-krb5-2 libidn11 libirs-export91
#0 2.980 libisc-export95 libisccfg-export90 libisl10 libitm1 libjson-c2 libk5crypto3
#0 2.980 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 liblog-message-perl
#0 2.980 liblog-message-simple-perl liblsan0 libltdl-dev libltdl7 liblua5.1-0
#0 2.980 libmagic1 libmail-sendmail-perl libmodule-build-perl
#0 2.980 libmodule-pluggable-perl libmodule-signature-perl libmpc3 libmpfr4
#0 2.981 libmro-compat-perl libonig2 libpackage-constants-perl libparams-util-perl
#0 2.981 libpcre3-dev libpcrecpp0 libperl4-corelibs-perl libpipeline1
#0 2.981 libpod-latex-perl libpod-readme-perl libqdbm14 libquadmath0
#0 2.981 libregexp-common-perl librtmp1 libsasl2-2 libsasl2-modules
#0 2.981 libsasl2-modules-db libsigsegv2 libsoftware-license-perl libsqlite3-0
#0 2.981 libssh2-1 libssl-dev libssl-doc libssl1.0.0 libstdc++-4.9-dev
#0 2.981 libsub-exporter-perl libsub-install-perl libsys-hostname-long-perl
#0 2.981 libterm-ui-perl libtext-soundex-perl libtext-template-perl libtimedate-perl
#0 2.981 libtool libtsan0 libubsan0 libunistring0 libxml2 linux-libc-dev lsof m4 make
#0 2.981 man-db manpages manpages-dev mime-support netbase openssl patch perl
#0 2.981 perl-modules php5-cli php5-common php5-json php5-readline pkg-php-tools
#0 2.981 po-debconf psmisc rename sgml-base shared-mime-info shtool ssl-cert ucf
#0 2.981 xdg-user-dirs xml-core xz-utils zlib1g-dev
#0 2.983 Suggested packages:
#0 2.983 www-browser apache2-doc apache2-suexec-pristine apache2-suexec-custom
#0 2.983 autoconf-archive gnu-standards autoconf-doc binutils-doc wamerican wordlist
#0 2.983 whois vacation bzip2-doc cpp-doc gcc-4.9-locales dh-make debian-keyring
#0 2.983 g++-multilib g++-4.9-multilib gcc-4.9-doc libstdc++6-4.9-dbg gcc-multilib
#0 2.983 flex bison gdb gcc-doc gcc-4.9-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg
#0 2.983 libatomic1-dbg libasan1-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg
#0 2.983 libcilkrts5-dbg libquadmath0-dbg gettext-doc groff ppp rdnssd net-tools
#0 2.983 resolvconf avahi-autoipd glibc-doc krb5-doc krb5-user libtool-doc
#0 2.983 libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql
#0 2.983 libsasl2-modules-gssapi-mit libsasl2-modules-gssapi-heimdal
#0 2.983 libstdc++-4.9-doc automaken gfortran fortran95-compiler gcj-jdk make-doc
#0 2.983 less man-browser ed diffutils-doc perl-doc libterm-readline-gnu-perl
#0 2.983 libterm-readline-perl-perl libb-lint-perl libcpanplus-dist-build-perl
#0 2.983 libcpanplus-perl libfile-checktree-perl libobject-accessor-perl
#0 2.983 php5-user-cache libmail-box-perl sgml-base-doc openssl-blacklist
#0 2.983 Recommended packages:
#0 2.983 libarchive-tar-perl libcompress-zlib-perl
#0 2.985 The following NEW packages will be installed:
#0 2.985 apache2 apache2-bin apache2-data apache2-utils autoconf automake autopoint
#0 2.985 autotools-dev binutils bsdmainutils build-essential bzip2 ca-certificates
#0 2.985 cpp cpp-4.9 curl debhelper dh-php5 dpkg-dev fakeroot file g++ g++-4.9 gcc
#0 2.985 gcc-4.9 gettext gettext-base groff-base ifupdown intltool-debian
#0 2.985 isc-dhcp-client isc-dhcp-common krb5-locales libaio1 libalgorithm-c3-perl
#0 2.985 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
#0 2.985 libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
#0 2.985 libaprutil1-ldap libarchive-extract-perl libasan1 libasprintf-dev
#0 2.985 libasprintf0c2 libatomic1 libbsd0 libc-dev-bin libc6-dev libcgi-fast-perl
#0 2.985 libcgi-pm-perl libcilkrts5 libclass-c3-perl libclass-c3-xs-perl
#0 2.985 libcloog-isl4 libcpan-meta-perl libcroco3 libcurl3 libdata-optlist-perl
#0 2.985 libdata-section-perl libdns-export100 libdpkg-perl libedit2 libexpat1
#0 2.985 libfakeroot libfcgi-perl libfile-fcntllock-perl libgcc-4.9-dev libgdbm3
#0 2.985 libgettextpo-dev libgettextpo0 libglib2.0-0 libglib2.0-data libgomp1
#0 2.985 libgssapi-krb5-2 libidn11 libirs-export91 libisc-export95 libisccfg-export90
#0 2.986 libisl10 libitm1 libjson-c2 libk5crypto3 libkeyutils1 libkrb5-3
#0 2.986 libkrb5support0 libldap-2.4-2 liblog-message-perl liblog-message-simple-perl
#0 2.986 liblsan0 libltdl-dev libltdl7 liblua5.1-0 libmagic1 libmail-sendmail-perl
#0 2.986 libmodule-build-perl libmodule-pluggable-perl libmodule-signature-perl
#0 2.986 libmpc3 libmpfr4 libmro-compat-perl libonig2 libpackage-constants-perl
#0 2.986 libparams-util-perl libpcre3-dev libpcrecpp0 libperl4-corelibs-perl
#0 2.986 libpipeline1 libpod-latex-perl libpod-readme-perl libqdbm14 libquadmath0
#0 2.986 libregexp-common-perl librtmp1 libsasl2-2 libsasl2-modules
#0 2.986 libsasl2-modules-db libsigsegv2 libsoftware-license-perl libsqlite3-0
#0 2.986 libssh2-1 libssl-dev libssl-doc libssl1.0.0 libstdc++-4.9-dev
#0 2.986 libsub-exporter-perl libsub-install-perl libsys-hostname-long-perl
#0 2.986 libterm-ui-perl libtext-soundex-perl libtext-template-perl libtimedate-perl
#0 2.986 libtool libtsan0 libubsan0 libunistring0 libxml2 linux-libc-dev lsof m4 make
#0 2.986 man-db manpages manpages-dev mime-support netbase openssl patch perl
#0 2.986 perl-modules php-pear php5 php5-cli php5-common php5-curl php5-dev php5-json
#0 2.986 php5-readline pkg-php-tools po-debconf psmisc rename sgml-base
#0 2.986 shared-mime-info shtool ssl-cert ucf xdg-user-dirs xml-core xz-utils
#0 2.987 zlib1g-dev
#0 8.244 0 upgraded, 173 newly installed, 0 to remove and 0 not upgraded.
#0 8.244 Need to get 88.0 MB of archives.
#0 8.244 After this operation, 292 MB of additional disk space will be used.
#0 8.244 WARNING: The following packages cannot be authenticated!
#0 8.244 libgdbm3 libpipeline1 groff-base bsdmainutils man-db libasprintf0c2 libedit2
#0 8.244 libkeyutils1 mime-support libapr1 libaprutil1 libaprutil1-dbd-sqlite3
#0 8.244 libaprutil1-ldap liblua5.1-0 libaio1 libisl10 libcloog-isl4 libcroco3
#0 8.244 libunistring0 libgettextpo0 libltdl7 libmpfr4 libpcrecpp0 libsigsegv2
#0 8.244 sgml-base libmpc3 ifupdown manpages netbase gettext-base
#0 8.244 libperl4-corelibs-perl lsof m4 ucf xz-utils autoconf autotools-dev automake
#0 8.244 autopoint binutils cpp gcc g++ make libtimedate-perl libdpkg-perl dpkg-dev
#0 8.244 build-essential gettext intltool-debian po-debconf libfakeroot fakeroot
#0 8.244 libalgorithm-c3-perl libalgorithm-diff-perl libalgorithm-diff-xs-perl
#0 8.244 libalgorithm-merge-perl libqdbm14 psmisc php5-json libarchive-extract-perl
#0 8.244 libasprintf-dev libcgi-pm-perl libfcgi-perl libcgi-fast-perl
#0 8.244 libclass-c3-perl libclass-c3-xs-perl libcpan-meta-perl libparams-util-perl
#0 8.244 libsub-install-perl libdata-optlist-perl libmro-compat-perl
#0 8.244 libsub-exporter-perl libdata-section-perl libfile-fcntllock-perl
#0 8.244 libgettextpo-dev liblog-message-perl liblog-message-simple-perl libltdl-dev
#0 8.245 libsys-hostname-long-perl libmail-sendmail-perl libmodule-pluggable-perl
#0 8.245 libpackage-constants-perl libpcre3-dev libpod-latex-perl
#0 8.245 libregexp-common-perl libpod-readme-perl libtext-template-perl
#0 8.245 libsoftware-license-perl libterm-ui-perl libtext-soundex-perl libtool
#0 8.245 manpages-dev shtool rename shared-mime-info ssl-cert xdg-user-dirs xml-core
#0 8.245 dh-php5 pkg-php-tools
#0 8.251 E: There are problems and -y was used without --force-yes
failed to solve: executor failed running [/bin/sh -c apt-get install -y apache2 php5 libapache2-mod-php5 php5-dev php-pear php5-curl curl libaio1]: exit code: 100
the problem was solved by changing the package installation string to:
RUN apt-get install -y --quiet --yes --force-yes apache2 php5 libapache2-mod-php5 php5-dev php-pear php5-curl curl libaio1