5 votes

How to setup Docker mirror proxy Repository in Nexus Repository ManagerOSS 3.19.1-01?

In Nexus, go to the Admin Backend. Create a blob store if you haven't already. Guidance can be found here: https://help.sonatype.com/repomanager3/configuration/repository-management#...
Worp's user avatar
  • 679
4 votes
Accepted

Update ECS task definition with new image from ECR

Options are: Use CodeBuild to push the new image. Make sure the task definition is using the "latest" tag. You'll need to force the deployment of the task definition to pick the new image. Use ...
aromero's user avatar
  • 191
4 votes
Accepted

Docker stack deploy doesn't pull images

So it turned out that some of the workers didn't have the correct credentials to the docker registry. After I applied the correct ones, the command worked normally. That's weird, since I could do it ...
jayooin's user avatar
  • 211
3 votes
Accepted

Referencing locally built Docker images in Terraform

Yes, As we write terraform template is correct. When you use terraform apply it will check local docker image list if it doesn't exit it will go to find registry as you define docker image. If you ...
Arvind Rawat's user avatar
3 votes
Accepted

How to enable tag immutability in quay.io?

At first glance, it seems that tag immutability is not a feature provided by Quay. You can enable "Trust and Signing" in the "settings" of the repo: Please note that this will not ...
Bruce Becker's user avatar
  • 3,570
3 votes

Docker preserve images policy

I do not believe that there is a way to set this as a global policy. However, there is a simple command you can run that will "prune" or remove your unused images. You will want to use docker image ...
Wesley Rolnick's user avatar
3 votes
Accepted

Are there Docker Hub comparable public Docker image repositories?

With Docker following the Open Container Initiative, in the event that Docker were to disappear, people would still have access to images stored outside of Docker Hub. While there is not a public ...
Wesley Rolnick's user avatar
3 votes

Update ECS task definition with new image from ECR

If task definition is using "latest" as image tag in container definition,to update ecs service in order to pull new image from ECR with "latest" tag. You can simply do Force new deployment aws ecs ...
Ashwini Gaddagi's user avatar
3 votes

Access private DockerHub repo in Docker Swarm

You need the --with-registry-auth flag, e.g.: docker stack deploy -c myapp.yml --with-registry-auth myapp From the docker stack deploy --help output: --with-registry-auth Send registry ...
BMitch's user avatar
  • 3,230
2 votes

Kubernets docker registry behind nginx-ingress

First of all 404 error is resource error in kubernetes. It means your container in the pod is not created by your first script. Even if it is created and you can see it then your labeling is wrong in ...
saddique's user avatar
2 votes
Accepted

What docker command could be issued to check whether a certain local docker image resides in a docker registry?

A related Q&A was already created on StackOverflow back in the day. Several answers simply do a docker pull image-to-be-checked. If exit 0, the image exists in a certain registry. If not then the ...
030's user avatar
  • 13.1k
2 votes

Gitlab CI/CD fails to build docker image

It looks like that the docker login and the docker build were done by different users. If a docker login is performed, then a ~/.docker directory will be created in the namespace of user X, if the ...
030's user avatar
  • 13.1k
2 votes

stop pulling a docker image from the public docker-hub registry

You cannot change the default registry (see this). You have to specify which registry to use like this: docker pull myprivatereg:port/library/image Or, in a Dockerfile: FROM myprivatereg:port/...
Hedi Nasr's user avatar
  • 736
2 votes

Exporting multi-arch Docker image from local registry to .tar file

This is answered in the Docker blog post on multi-platform docker builds. For your specific situation, you would perform a build and push for each platform you'd like, then create a manifest file and ...
T145's user avatar
  • 170
1 vote
Accepted

How to efficiently copy multiple Docker images between two air gapped repositories?

Instead of transferring the images as a packaged tar file, I'd recommend using the OCI Image Layout format that represents a repository as a directory on disk. Copying contents into or out of this ...
BMitch's user avatar
  • 3,230
1 vote
Accepted

What is the URL I provide to docker or podman to pull down a GitLab registry image?

You must use registry.gitlab.com/gitlab-org/gitlab-runner/alpine-no-root The project is gitlab-org The domain is gitlab.com The registry is at registry.gitlab.com The naming convention on the GitLab ...
Evan Carroll's user avatar
  • 1,794
1 vote
Accepted

creating private registry, id and password with -Bbn option

From docs: -B Use bcrypt encryption for passwords. This is currently considered to be very secure. -b Use batch mode; i.e., get the password from the command line rather than prompting for it. This ...
Siva's user avatar
  • 223
1 vote
Accepted

Docker preserve images policy

So I ended up using this simple shell script docker images -q --filter "before=ecr.us-east-1.amazonaws.com/myapp:02e56bac4ee3f27a4d5670a6ac0d578e3dd5b2e5" | xargs docker rmi --force First you filter ...
Most Wanted's user avatar
1 vote
Accepted

While pulling windows docker image from private registry, Docker trying to download some layers from internet

this could be the reason - https://docs.docker.com/registry/recipes/mirror/ Configure the Docker daemon Either pass the --registry-mirror option when starting dockerd manually, or edit /etc/docker/...
Nathan Aw's user avatar
  • 126
1 vote

Is there a way to push tarred repository to dockerhub without loading on local

Actually this is not possible as docker push command will look for a local image or a repository. You will have to load your image first from tar file, the push it to your registry. docker load --...
storm's user avatar
  • 1,759
1 vote

How to pin public root key when downloading an image with docker pull (Docker Content Trust)?

tl;dr You can execute the following to pin the public root key for debian: sudo su - mkdir -p /root/.docker/trust/tuf/docker.io/library/debian/metadata chown -R root:root /root/.docker chmod -R 0700 /...
Michael Altfield's user avatar
1 vote

Untracable glassfish docker container image or clean installation?

Look into Payara. It's a Glassfish fork/drop-in replacement that's better in most ways, including support. There is a Payara 5 docker image available right on docker hub: https://hub.docker.com/r/...
maplebird's user avatar
  • 676
1 vote
Accepted

Jenkins Helm Chart - kubernetes-plugin pulling image from a private gcr

Found the issue, had: kubectl -n jenkins patch serviceaccount jenkins -p '{"imagePullSecrets": [{"name": "gcr-json-key"}]}' ... applied on default serviceaccount ...
anVzdGFub3RoZXJodW1hbg's user avatar
1 vote

unable to login using docker registry on jenkins

I think what you are doing wrong is the way you specify the credentialID to be used. Instead of 'awsId' try to use 'ecr:ap-southeast-1:awsId' docker.withRegistry('https://01234.dkr.ecr.ap-southeast-...
nandilov's user avatar
  • 121
1 vote

Issue pushing to ECR using Jenkins

The docker login failed. Error response from daemon: Get https://https/v2/: dial tcp: lookup https: Temporary failure in name resolution The url is invalid. change from docker login -u AWS -p ****...
user48545's user avatar
  • 111
1 vote

Jenkinsfile: Pull image from registry endpoint A, push built image to registry endpoint B

Try to chain withRegistry like this: docker.withRegistry('https://registry:10500', 'credentials-id') { docker.withRegistry('https://registry:10501', 'credentials-id') { docker.build(...
Hedi Nasr's user avatar
  • 736
1 vote

Failed to start Container after reboot

Try to check is registry really stopped using docker ps -a if container runned stop container then start. Part related to the --restart always option, restart always will proceed only if container ...
Ivan Gurzhiy's user avatar
1 vote

Increase Kubernetes Nginx Ingress limits for large images in Docker registry

I learned that it's not required to set the ingress class to nginx as I did in kubernetes.io/ingress.class: nginx. All annotations prefixed with nginx.ingress.kubernetes.io apply to the default ...
Daniel's user avatar
  • 211
1 vote

CI pipelines, concurrency and build results possibly overwriting each-other

I am using AzureDevOps and the trick we use when naming containers is to add build number to the label namespace/application:branch-name-bulidNumber So in your case, you could try gitlab variable ...
profesor79's user avatar
1 vote

How to clean up old images in docker registry with jenkins

We have a script which we run periodicaly which scans our docker registry for orphaned items, and then deletes them. Unfortunately, it requires multiple API calls to get all the data required, and ...
avi's user avatar
  • 1,279

Only top scored, non community-wiki answers of a minimum length are eligible