Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Docker image build failed ! #52

Open
kevintrannz opened this issue Aug 22, 2016 · 2 comments
Open

Docker image build failed ! #52

kevintrannz opened this issue Aug 22, 2016 · 2 comments

Comments

@kevintrannz
Copy link

Hi,
I'm trying to build docker image from source but it failed as following

Sending build context to Docker daemon 9.216 kB
Step 1 : FROM java:openjdk-8-jre
---> 0a290b7fd4c4
Step 2 : ENV DEBIAN_FRONTEND noninteractive
---> Using cache
---> c9c7a60507de
Step 3 : ENV SCALA_VERSION 2.11
---> Using cache
---> 6b1df17b1b9b
Step 4 : ENV KAFKA_VERSION 0.10.0.1
---> Using cache
---> c28d56fc3f16
Step 5 : ENV KAFKA_HOME /opt/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION"
---> Using cache
---> 69728c9aac29
Step 6 : RUN apt-get update && apt-get install -y zookeeper wget supervisor dnsutils && rm -rf /var/lib/apt/lists/* && apt-get clean && wget -q http://apache.mirrors.spacedump.net/kafka/"$KAFKA_VERSION"/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -O /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz && tar xfz /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -C /opt && rm /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz
---> Running in 159de5710043

Err http://security.debian.org jessie/updates InRelease

Err http://security.debian.org jessie/updates Release.gpg
Could not resolve 'security.debian.org'
Err http://httpredir.debian.org jessie InRelease

Err http://httpredir.debian.org jessie-updates InRelease

Err http://httpredir.debian.org jessie-backports InRelease

Err http://httpredir.debian.org jessie Release.gpg
Could not resolve 'httpredir.debian.org'
Err http://httpredir.debian.org jessie-updates Release.gpg
Could not resolve 'httpredir.debian.org'
Err http://httpredir.debian.org jessie-backports Release.gpg
Could not resolve 'httpredir.debian.org'
Reading package lists...
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/InRelease

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/InRelease

W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/InRelease

W: Failed to fetch http://security.debian.org/dists/jessie/updates/Release.gpg Could not resolve 'security.debian.org'

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/Release.gpg Could not resolve 'httpredir.debian.org'

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/Release.gpg Could not resolve 'httpredir.debian.org'

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/Release.gpg Could not resolve 'httpredir.debian.org'

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package zookeeper
E: Unable to locate package supervisor
E: Unable to locate package dnsutils
The command '/bin/sh -c apt-get update && apt-get install -y zookeeper wget supervisor dnsutils && rm -rf /var/lib/apt/lists/* && apt-get clean && wget -q http://apache.mirrors.spacedump.net/kafka/"$KAFKA_VERSION"/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -O /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz && tar xfz /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -C /opt && rm /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz' returned a non-zero code: 100

Something wrong with getting packages ?

Thanks,
Kevin.

@bluepuma77
Copy link

Works for me.

git clone https://github.com/spotify/docker-kafka
cd docker-kafka/
cd kafka
docker build -t kafka:0.10.1.0 .

@nileshkamani82
Copy link

I am getting this same problem as well. Could it be due to proxy issues ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants