Questions tagged [docker-registry]

Docker Registry is a service which you can push Docker images to for storage and sharing. It is also the tool's name.

Docker registry services are provided as hosted or self-hosted services by various vendors:

Self-hosted:

Hosted

All of them comply either to v1 or v2 of the Docker registry API specification.

Docker Registry tool is at https://github.com/docker/docker-registry.

1698 questions
20
votes
1 answer

docker push to the registry with changed Dockerfile and same tag

Imagine, I have docker image based on Dockerfile, I will tag & push it into docker registry Over time, I change Dockerfile (add/change new instructions, ...) Now, I will tag new image again with the same tag I used in the first place and push it…
Patrik Mihalčin
  • 3,341
  • 7
  • 33
  • 68
20
votes
5 answers

How to clean-up old unused Kubernetes images/tags?

To simplify deployment and short term roll-back, it's useful to use a new Docker image tag for each new version to deploy on Kubernetes. Without clean-up this means that old images:tags are kept forever. How can I list all image:tag that are used by…
Wernight
  • 36,122
  • 25
  • 118
  • 131
20
votes
6 answers

How to find the creation date of an image in a (private) Docker registry (API v2)?

I would like to find out the latest timestamp for an image in a private Docker registry using the v2 API without first pulling the image to my local host.
snth
  • 5,194
  • 4
  • 39
  • 48
19
votes
5 answers

GITHUB_TOKEN permission denied write package when build and push docker in github workflows

I have a Github organization and try to migrate container registry from docker hub to GitHub Packages. By using Github Workflows, here's the yaml I used to push docker to GitHub Packages: name: ghcr_test on: push: branches: - dev jobs: …
billyzaelani
  • 567
  • 1
  • 5
  • 18
19
votes
1 answer

Docker/GitLab authentication for docker registry returns 401 error

I'm trying to configure my docker registry using auth of gitlab (docker). Doing docker login registry.website.com gives me a 401 Unauthorized error: Error response from daemon: login attempt to https://registry.website.com/v2/ failed with status:…
user3142695
  • 15,844
  • 47
  • 176
  • 332
19
votes
3 answers

How can I use the Docker Registry API V2 to delete an image from a private registry?

Given a Docker Registry at localhost:5000, how can I use the Docker Registry HTTP API V2 and curl to delete busybox:latest that has the following manifest header and manifest: derek@derekmahar-ubuntu-512mb-tor1-01:~/Projects/docker-registry$ curl…
Derek Mahar
  • 27,608
  • 43
  • 124
  • 174
18
votes
4 answers

How can I use Github packages Docker registry in Kubernetes dockerconfigjson?

How can I pull docker.pkg.github.com Docker images from within Kubernetes cluster? Currently, the Github Docker registry requires authentication even for packages from public Github repositories.
Vojtech Vitek - golang.cz
  • 25,275
  • 4
  • 34
  • 40
18
votes
3 answers

Docker base image with the Solaris operating system

Does anybody know from where I can get docker base image with Solaris OS in it? I tried finding it on Dockerhub but couldn't find one. Please provide me the detail 'dockerhost/namespace/imagename:tag'
UserASR
  • 2,015
  • 4
  • 24
  • 47
17
votes
3 answers

docker --cache-from with BUILDKIT_INLINE_CACHE does not work every second time

I am trying to take advantage of the caching/pulling system of BUILDKIT for Docker for my CI/CD process. But it does not work as expected. I created a dummy local example (but the same happens also in my CI system - AWS CodePipeline, and for both…
Bi0max
  • 320
  • 2
  • 9
17
votes
4 answers

Kubernetes pull from insecure docker registry

I have stacked in this phase: Have local docker insecure registry and some images in it, e.g. 192.168.1.161:5000/kafka:latest Have kubernetes cloud cluster, for which I can access only via ~/.kube/config file, e,g. token. Need to deploy below…
user37033
  • 379
  • 1
  • 6
  • 18
17
votes
2 answers

Docker Registry - Do not allow pushing if the tag already exits (except for :latest tag)

I have a scenario where we need our private Docker Registry (v2) to not accept pushes to a tag if it already exists. For example I have 192.168.0.77:5000/my-project:1.0.0 and someone pushes an update on the endpoint above. It should stop the…
BoqBoq
  • 4,564
  • 5
  • 23
  • 29
17
votes
1 answer

Docker Registry vs Nexus/Artifactory

Is the 'Docker registry' in Docker engine similar to Nexus/Artifactory? What are the similarities and differences between them? If we already have Nexus, can we use it as an alternative to Docker registry and plug it into the Docker engine? Could…
Sri
  • 573
  • 2
  • 6
  • 20
17
votes
3 answers

How I can use docker-registry with login/password?

I have my docker-registry in localhost and I can pull/push with command: docker push localhost:5000/someimage How I can push it with command like docker push username@password:localhost:5000/someimage?
kvendingoldo
  • 311
  • 2
  • 4
  • 7
17
votes
2 answers

Unable to push image to a docker registry configured as proxy cache

I followed this guide to setup a Docker v2 Registry acting as a local proxy cache for Docker Hub images. My Docker daemon is configured with both --insecure-registry and --registry-mirror options pointing to the same registry instance. When pulling…
Cristian Greco
  • 2,566
  • 1
  • 19
  • 24
16
votes
4 answers

Kubernetes Failed to pull image no basic auth credentials

i'm trying to pull an image from github packages in kubernetes but i keep getting the error "no basic auth credentials" i created a secret with this command: kubectl create secret docker-registry regcred --docker-server=docker.pkg.github.com …
hackerxben
  • 188
  • 1
  • 1
  • 8