Tag: docker registry

docker: push image not work

I setup a private docker registry in my one server(let’s call it server-1). I can push and pull image in this server successfully. server-1: Docker version 1.7.1 kuankr-staging@kuankrstaging-OptiPlex-390:~$ docker push docker.agutong.com:5000/registry The push refers to a repository [docker.agutong.com:5000/registry] (len: 1) 2f1ef7702586: Image already exists 97cf055388e0: Image successfully pushed 8703b7c675b1: Image successfully pushed 4f780ec6d926: Image successfully […]

Docker-Distribution: cannot pull from different machine (FATA[0000] Error: image sample-web-app:latest not found)

I’ve installed a private docker repository with the docker distribution registry (not the old docker-registry). I can query the api from another machine and see the my pushed image, but I can’t pull it. On machine A I have installed a docker distribution container: sudo docker run –name=registry –restart=always -d -p 5000:5000 registry:2.0 I’ve created […]

export the IBM Docker container images in the registry

My aim is to show the portability of docker, and thus being able to export docker container images from the registry/repository to an external docker user. I can perfectly pull the image from the machine with ICE CLI installed, and authentication (ice login passed), but if I use an other machine, the command docker pull […]

Docker Registry incorrectly claims an expired CA cert

I followed the Docker Registry installation docs precisely, and have a registry running on a remote Ubuntu VM. On that VM, the Docker container is running with the following command: docker run -d -p 5000:5000 –restart=always –name registry \ -v `pwd`/auth:/auth \ -e “REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm” \ -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \ -v `pwd`/certs:/certs \ -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry.crt \ […]

Unable to login into private docker registry (v2.0)

I am trying to setup a private Docker Registry using the standard docker registry image and a Docker Registry Reverse Proxy (https://registry.hub.docker.com/u/marvambass/nginx-registry-proxy/) The goal is to secure the registry using SSL (using self-signed ssl cert) and username/password authentication. This all seems to go well, when i try to navigate via browser to private docker registry […]

Docker –add-host flags not working for registry 2.0 webhooks notifications

I had to connect to the Docker host (where my application is running at 8080) from within my registry container. To enable this, i passed the Docker host’s IP Address to the container using the “–add-host” flag. Followed the github issue and Command line reference. I enabled my application endpoint:8080 in below config.yml to send […]

I got an error when I try to delete an image in docker

System version: ubuntu 14.04 Docker version: 1.0.1, build 990021a I am new to docker, I try the command docker run -p 5000:5000 registry But it takes a long time. And I feel it is too long. So I pressed ctrl + c to stop this operation. Then, I tried docker pull registry But it occured […]

HTTP Code 504 while uploading layer “”

When trying to push images to private registry, the error HTTP Code 504 while uploading layer “” is often occurring.There after it throws , Error response from daemon: invalid registry endpoint https://registrydomain.com/v0/: unable to ping registry endpoint https://registrydomain.com/v0/, the registry seems to go into hang state. I have increased proxy_timeout to 900sec to see if […]

Why is my docker image size much bigger than my application?

I built my docker image as follows: FROM a 3rd-party image on Docker Hub (~1GB) apt-get install some packages (~ 16MB) COPY my application binary into the image (~10MB) If docker images/layers are like git commits, then it looks to me that the actual new data I have created shall be about 16+10=26MB, while everything […]

docker-compose tries to access registry v1 on first “up”

I have a docker-compose file that looks like this: version: ‘2’ services: registry: restart: always image: registry:2 ports: – 5000:5000 environment: REGISTRY_STORAGE: “s3” REGISTRY_STORAGE_S3_ACCESSKEY: “yada” REGISTRY_STORAGE_S3_SECRETKEY: “yada” REGISTRY_STORAGE_S3_REGION: “us-east-1” REGISTRY_STORAGE_S3_BUCKET: “docker-registry” REGISTRY_STORAGE_S3_ENCRYPT: “true” REGISTRY_STORAGE_S3_SECURE: “true” REGISTRY_STORAGE_S3_V4AUTH: “true” REGISTRY_STORAGE_S3_CHUNKSIZE: “5242880” volumes: – ./data:/data prototype: restart: always image: localhost:5000/prototype ports: – 8081:8081 volumes: – /opt/config:/config depends_on: – […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.