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#...
user avatar
  • 619
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 ...
user avatar
  • 211
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 ...
user avatar
  • 3,048
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 ...
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 ...
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 ...
user avatar
  • 2,700
3 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 ...
user avatar
  • 161
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 ...
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 ...
user avatar
  • 12.5k
2 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 ...
user avatar
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 ...
user avatar
  • 12.5k
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/...
user avatar
  • 706
2 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 ...
user avatar
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 ...
user avatar
  • 203
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 ...
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/...
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 --...
user avatar
  • 1,669
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 /...
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/...
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 ...
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-...
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 ****...
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(...
user avatar
  • 706
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 ...
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 ...
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 ...
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 ...
user avatar
  • 1,269
1 vote

Docker stack deploy doesn't pull images

@jayooin that's weird, if you use --with-registry-auth, you don't normally have to set up the credentials on each worker node as the credentials are passed to the wokers by the manager. In my case the ...
user avatar

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