Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local development: pulling images from Make fails with access denied #272

Closed
mdelapenya opened this issue Nov 21, 2019 · 0 comments · Fixed by #273
Closed

Local development: pulling images from Make fails with access denied #272

mdelapenya opened this issue Nov 21, 2019 · 0 comments · Fixed by #273
Assignees
Labels
automation bug Something isn't working

Comments

@mdelapenya
Copy link
Contributor

Steps to reproduce:

  • Check Jenkins infra Docker image is not present in your system: docker images docker.elastic.co/infra/jenkins
  • Remove local Docker image for local Jenkins: docker rmi docker images docker.elastic.co/infra/jenkins
  • Run LOG_LEVEL=DEBUG make build to build the image with debug log level

Expected behavior: docker compose pulls the image from the private repo
Actual behavior: build fails with error

Sending auth config ('docker.elastic.co', 'eu.gcr.io', 'https://docker.elastic.co', 'https://index.docker.io/v1/', 'asia.gcr.io', 'gcr.io', 'marketplace.gcr.io', 'staging-k8s.gcr.io', 'us.gcr.io')
http://localhost:None "POST /v1.38/build?t=local_jenkins&q=False&nocache=False&rm=True&forcerm=False&pull=False HTTP/1.1" 200 None
Step 1/3 : FROM docker.elastic.co/infra/jenkins:201911011157.d339e8ba4dc2
ERROR: Service 'jenkins' failed to build: pull access denied for docker.elastic.co/infra/jenkins, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
make: *** [build] Error 1

Suggestions

Docker-compose had an issue when pulling from private repos (docker/compose#6713), which was fixed in v1.25.0-rc3 (https://github.com/docker/compose/releases/tag/1.25.0-rc3)

We suggest updating local docker-compose version to 1.25.0

@mdelapenya mdelapenya added bug Something isn't working automation labels Nov 21, 2019
@mdelapenya mdelapenya self-assigned this Nov 21, 2019
mdelapenya added a commit that referenced this issue Nov 21, 2019
* ci(local): document system requirements for local development

* ci(local) proper headings in readme
@mdelapenya mdelapenya self-assigned this Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant