Questions tagged docker-registry

Explore the latest questions and answers asked by our top developers.

How can I tell docker to create a container from a local image, without looking at the docker hub if no local image is found with that name?

I’m trying to get around what I see as a security issue. If I am working on a project I call "example", I may build a docker image from it using docker build -t example ., then run it using docker run example. This will work properly, but if I forget to build first, or […]

Docker Registry behind HAProxy not working properly

I have configured Docker Registry using htpasswd authentication as docker service. I use a port mapping 443:5000 and it works perfectly. "docker login :443" works, "docker pull <mydomain:433/myimage" works. The container service looks like this: myhub: image: myhub ports: – "443:5000" environment: – REGISTRY_HTTP_ADDR=0.0.0.0:5000 – REGISTRY_HTTP_TLS_KEY=/certs/efimeridopolis.privkey.pem – REGISTRY_HTTP_TLS_CERTIFICATE=/certs/efimeridopolis.fullchain.pem – REGISTRY_AUTH=htpasswd – REGISTRY_AUTH_HTPASSWD_REALM=’Registry Realm’ – REGISTRY_AUTH_HTPASSWD_PATH=/auth/registry.htpasswd […]

By Alexandros Gougousis
Published
Categorised as docker, docker-registry, haproxy Tagged , ,

Why does "-e none" appear in my docker login of AWS Registry Authentication?

Currently, I have the following error on pushing the image to ECR: BuildError: {‘errorDetail’: {‘message’: ‘denied: Your authorization token has expired. Reauthenticate and try again.’}, ‘error’: ‘denied: Your authorization token has expired. Reauthenticate and try again.’} I tried to resolve it using the following command and removing the "-e none" from the response of the […]

Kubernetes – Failed to Pull image – no such how

We are taking the step to upgrade our infrastructure setup and are doing some R&D with K8s. We believe k8s is the solution we want to implement, however I’ve hit a brick wall. I’m really struggling to get k8s to pull an image from a private registry that uses a hostname that does not exist. […]

Docker pull ERROR HTTP 206 from byte range request

I’m trying to run docker pull mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019 on windows10 machine ERROR: expected HTTP 206 from byte range request Source: Docker Questions

Docker Registry v2 authentication using OAuth2 does not return refresh token when `access_type=offline`

By following command snippet in https://docs.docker.com/registry/spec/auth/oauth/ as below and set access_type=offline, refresh_token is not present in returned response. curl -iX POST https://auth.docker.io/token -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=password&username=${user}&password=${password}&service=hub.docker.io&client_id=dockerengine&access_type=offline" Command succeeds with response below: HTTP/1.1 200 OK content-type: application/json date: Tue, 04 Jan 2022 03:08:37 GMT transfer-encoding: chunked strict-transport-security: max-age=31536000 { "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsIng1YyI6WyJNSUlDK1RDQ0FwK2dBd0lCQWdJQkFEQUtCZ2dxaGtqT1BRUURBakJHTVVRd1FnWURWUVFERXp0U1RVbEdPbEZNUmpRNlEwZFFNenBSTWtWYU9sRklSRUk2VkVkRlZUcFZTRlZNT2taTVZqUTZSMGRXV2pwQk5WUkhPbFJMTkZNNlVVeElTVEFlRncweU1UQXhNalV5TXpFMU1EQmFGdzB5TWpBeE1qVXlNekUxTURCYU1FWXhSREJDQmdOVkJBTVRPMVZQU1ZJNlJFMUpWVHBZVlZKUk9rdFdRVXc2U2twTFZ6cExORkpGT2tWT1RFczZRMWRGVERwRVNrOUlPbEpYTjFjNlRrUktWRHBWV0U1WU1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbnZBeVpFK09sZHgrY3hRS0RBWUtmTHJJYk5rK2hnaEg3Ti9mTFpMVDhEYXVPMXRoTWdoamxjcGhFVkNuYTFlMEZpOHVsUlZ4WG1HdWpZVDNXbnFsZ2ZpM2ZYTUQvQlBRTmlkWHZkeWprbDFZS3dPTkl3TkFWMnRXbExxaXFsdGhSWkFnTFdvWWZZMXZQMHFKTFZBbWt5bUkrOXRBcEMxNldNZ1ZFcHJGdE1rNnV0NDlMcDlUR1J0aDJQbHVWc3RSQ1hVUGp4bjI0d3NnYlUwVStjWTJSNEpyZmVJdzN0T1ZKbXNESkNaYW5SNmVheFYyVFZFUkxoZnNGVTlsSHAzcldCZ1RuNVRCSHlMRDNRdGVFLzJ3L3MvcUxZcmdIK1hCMmZBazJPd1NIRG5YWDg4WWVJd0EyVGJJMDdYNS8xQnVsa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UuCzMqrhVtrvPn07Su0nN_BpAJ5fDum5jHS1gDmmX7pnGnB0gd0g", "scope": "", "expires_in": 300, […]

By Robert
Published
Categorised as docker, docker-api, docker-registry, oauth Tagged , , ,

Bazel rules_docker push container with Docker image SHA-256 tag

I would like to push a Docker image to a registry with as tag the SHA-256 digest of the image. I am using Bazel and more specifically container_push from docker_rules. Unfortunately, I am unable to retrieve the image’s digest and tag the image with it. Assuming I have the following BUILD.bazel config, how can I […]

By nickdecooman
Published
Categorised as bazel, bazel-rules, docker, docker-registry Tagged , , ,

Scanning local docker image for vulnerability using Trivy gives unauthorized

I’ve pulled a docker image from a private repository to local and trying to scan the local image with trivy image command. It is pulling the database but showing Unauthorized error to access the local image scan error: unable to initialize a scanner: unable to initialize a docker scanner: 3 errors occurred: * unable to […]

By Manoj kumar
Published
Categorised as docker, docker-registry, trivy Tagged , ,

How Does Docker Hub Registry Work in Software Development Teams?

I am working with an image called tensort built using my local docker daemon. This is the command I am using to push the image. docker push della/tensort:latest But how does it work in devops teams of a few developers, if someone wants to work with others’ image? How does the image name (della/tensort:latest in […]

Docker says "…: Already exists" even though image has been removed beforehand

Just in the process of learning Docker. Tried to run the hello-world example: # docker run hello-world Worked. Removed the image using # docker image rm -f <image-id> Worked. # docker images Shows no images. Now, if I try to run the hello-world example again, it shows this: It mentions: 2db29710123e: Already exists Does this […]

By Stan
Published
Categorised as docker, docker-image, docker-registry Tagged , ,
1 36

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq