Docker Community Forums

Share and learn in the Docker community.

Error Installing and Running Docker Notary Service


(Anthony Alcamo) #1

Good morning. I am attempting to install and run a Docker Notary service using the instructions found on this page, but the build fails.: https://docs.docker.com/notary/running_a_service/. Any help would really be appreciated.
Thank you,
Anthony

OS: RHEL 7.3

Client:
Version: 17.03.1-ee-3
API version: 1.27
Go version: go1.7.5
Git commit: 3fcee33
Built: Thu Mar 30 20:03:25 2017
OS/Arch: linux/amd64

Server:
Version: 17.03.1-ee-3
API version: 1.27 (minimum version 1.12)
Go version: go1.7.5
Git commit: 3fcee33
Built: Thu Mar 30 20:03:25 2017
OS/Arch: linux/amd64
Experimental: false

------ Install Notary client - latest version is currently 0.4.3


curl -l https://github.com/docker/notary/releases/download/v0.4.3/notary-Linux-amd64 -o notary
chmod +x notary
mv notary /usr/bin

------------ Install and run Notary Service
yum -y update
yum install git
Install docker-compose
curl -L https://github.com/docker/compose/releases/download/1.12.0/docker-compose-uname -s-uname -m > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
cd /home/user
git clone https://github.com/docker/notary.git
cd notary
docker-compose up

---------- Below is the console output
Building signer
Step 1/13 : FROM golang:1.7.3-alpine
—> 4e874ba52406
Step 2/13 : MAINTAINER David Lawrence "david.lawrence@docker.com"
—> Using cache
—> 8e2730be6b16
Step 3/13 : RUN apk add --update git gcc libc-dev && rm -rf /var/cache/apk/*
—> Running in 615c201cf4b4
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.4/main: could not connect to server (check repositories file)
WARNING: Ignoring APKINDEX.167438ca.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.4/community: could not connect to server (check repositories file)
WARNING: Ignoring APKINDEX.a2e6dac0.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
gcc (missing):
required by: world[gcc]
git (missing):
required by: world[git]
libc-dev (missing):
required by: world[libc-dev]
ERROR:
Service ‘signer’ failed to build: The command ‘/bin/sh -c apk add
–update git gcc libc-dev && rm -rf /var/cache/apk/*’ returned a
non-zero code: 3


(Joao Fernandes) #2

When building the Notary signer, the signer.Dockerfile has

RUN apk add --update git gcc libc-dev && rm -rf /var/cache/apk/*

And that command seems to be failing. Make sure you are connected to the internal, and try running docker-compose build again.


(Anthony Alcamo) #3

Joao,
You are correct. I needed to add and correct proxy environment variables.
I have gotten past this exception. Thank you for following up.
Anthony