hashicorp / docker-consul

Official Docker images for Consul.
Mozilla Public License 2.0
398 stars 238 forks source link

docker build returned a non-zero code: 31 #122

Open sathishcom3 opened 5 years ago

sathishcom3 commented 5 years ago

Hello, when I execute docker build , returned a non-zero code: 31 My environment : OS : Fedora 29 Docker : Docker version 1.13.1, build 092cba3

that's the error:

Step 1/4 : FROM alpine:latest ---> cdf98d1859c1 Step 2/4 : RUN apk --no-cache add bash curl openssl postgresql apache2-ssl php7 php7-apache2 php7-ctype php7-curl php7-dom php7-fileinfo php7-json php7-mcrypt php7-openssl php7-pdo php7-pdo_sqlite php7-pgsql php7-phar php7-posix php7-session php7-simplexml php7-soap php7-sqlite3 php7-tokenizer php7-xdebug php7-xml php7-xmlreader php7-xmlwriter php7-zip php7-zlib python2 ---> Running in 056b37cd881c fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz: temporary error (try again later) fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz: temporary error (try again later) ERROR: unsatisfiable constraints: apache2-ssl (missing): required by: world[apache2-ssl] bash (missing): required by: world[bash] curl (missing): required by: world[curl] openssl (missing): required by: world[openssl] php7 (missing): required by: world[php7] php7-apache2 (missing): required by: world[php7-apache2] php7-ctype (missing): required by: world[php7-ctype] php7-curl (missing): required by: world[php7-curl] php7-dom (missing): required by: world[php7-dom] php7-fileinfo (missing): required by: world[php7-fileinfo] php7-json (missing): required by: world[php7-json] php7-mcrypt (missing): required by: world[php7-mcrypt] php7-openssl (missing): required by: world[php7-openssl] php7-pdo (missing): required by: world[php7-pdo] php7-pdo_sqlite (missing): required by: world[php7-pdo_sqlite] php7-pgsql (missing): required by: world[php7-pgsql] php7-phar (missing): required by: world[php7-phar] php7-posix (missing): required by: world[php7-posix] php7-session (missing): required by: world[php7-session] php7-simplexml (missing): required by: world[php7-simplexml] php7-soap (missing): required by: world[php7-soap] php7-sqlite3 (missing): required by: world[php7-sqlite3] php7-tokenizer (missing): required by: world[php7-tokenizer] php7-xdebug (missing): required by: world[php7-xdebug] php7-xml (missing): required by: world[php7-xml] php7-xmlreader (missing): required by: world[php7-xmlreader] php7-xmlwriter (missing): required by: world[php7-xmlwriter] php7-zip (missing): required by: world[php7-zip] php7-zlib (missing): required by: world[php7-zlib] postgresql (missing): required by: world[postgresql] python2 (missing): required by: world[python2] The command '/bin/sh -c apk --no-cache add bash curl openssl postgresql apache2-ssl php7 php7-apache2 php7-ctype php7-curl php7-dom php7-fileinfo php7-json php7-mcrypt php7-openssl php7-pdo php7-pdo_sqlite php7-pgsql php7-phar php7-posix php7-session php7-simplexml php7-soap php7-sqlite3 php7-tokenizer php7-xdebug php7-xml php7-xmlreader php7-xmlwriter php7-zip php7-zlib python2' returned a non-zero code: 31

mkeeler commented 5 years ago

@sathishcom3 It looks like you are pointed at the wrong dockerfile. The consul docker file here: https://github.com/hashicorp/docker-consul/blob/master/0.X/Dockerfile definitely doesn't install anything related to php or postgresql and we also are pinned to using alpine 3.7 at the moment.