Tag: docker registry

Create a docker image/container from EC2 AMI

I am very new to docker and am trying to import my AWS EC2 AMI into a docker image. The image is a m2 linux image. I have also setup a private docker hub(artifactory) to which I intend to push the image and make it available for consumption. What are the steps for importing AMI […]

Why does pushing a Docker image fail with “dial tcp: lookup cdn-registry-1.docker.io on read udp i/o timeout”?

I’m pushing to a private docker repository on Docker Hub and I keep getting this error: 2726b5968341: Image successfully pushed 2fd0731064ec: Image successfully pushed 49328a658a81: Image successfully pushed 6beafaa9c78d: Image successfully pushed bb8b822852f4: Image successfully pushed 6a0d258340b1: Pushing FATA[0457] Failed to upload metadata: Put https://cdn-registry-1.docker.io/v1/images/6a0d258340b180fd569ec687653d805ebb70e77c1943ca6cfc9d296392ad79ee/json: dial tcp: lookup cdn-registry-1.docker.io on read udp i/o […]

ERROR: In file './docker-compose.yml', service 'volumes' must be a mapping not an array

My docker-compose.yml looks like the below and I am trying to follow the compose file from the docker registry documentation here. When i run docker-compose up I get the below error. ERROR: In file ‘./docker-compose.yml’, service ‘volumes’ must be a mapping not an array. registry: restart: always image: sudarshan/registry ports: – 5000:5000 environment: REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt […]

Docker private registry with mirror

I created two Docker containers. The first one provides a private Docker registry and the second one is a mirror of the official Docker registry: docker run -d –name registry -v /local/path/to/registry:/registry -e SETTINGS_FLAVOR=local -e STORAGE_PATH=/registry -p 5000:5000 registry docker run -d –name mirror -v /local/path/to/mirror:/registry -e STORAGE_PATH=/registry -e STANDALONE=false -e MIRROR_SOURCE=https:/registry-1.docker.io -e MIRROR_SOURCE_INDEX=https://index.docker.io -p […]

Error saving Docker images to AWS S3 bucket from private Docker Registry

I’m trying to set up a private Docker Registry and save images to AWS S3 instance. The Registry seems to be working fine — it starts up ok and I can authenticate to it over https. The problem I’m having is that I’m getting an error saving to S3, so I assume there is some […]

Docker hub image cache doesn't seem to be working

We have a continuous integration pipeline on circleci that does the following: Loads repo/image:mytag1 from the cache directory to be able to use cached layers Builds a new version: docker build -t repoimage:mytag2 Saves the new version to the cache directory with docker save Runs tests Pushes to docker hub: docker push repo/image:mytag2 The problem […]

What´s the sha256 code of a docker image?

I´d like to pull the images of centos, tomcat, … using their sha256 code, like in docker pull myimage@sha256:0ecb2ad60 but I can´t find the sha256-code to use anywhere. I checked the dockerhub repository for any hint of the sha256-code, but couldn´t find any. I downloaded the images by their tag docker pull tomcat:7-jre8 and checked […]

Using private registry hosted on docker

I’m hosting my own docker-registry in a docker container. It’s fronted by nginx running in a separate container to add basic auth. Checking the _ping routes I can see that nginx is routing appropriately. When calling docker login from boot2docker (on Mac OSX) I get this error: FATA[0003] Error response from daemon: Invalid registry endpoint […]

docker build + private NPM (+ private docker hub)

I have an application which runs in a Docker container. It requires some private modules from the company’s private NPM registry (Sinopia), and accessing these requires user authentication. The Dockerfile is FROM iojs:latest. I have tried: 1) creating an .npmrc file in the project root, this actually makes no difference and npm seems to ignore […]

How do I deploy updated Docker images to Amazon ECS tasks?

What is the right approach to make my Amazon ECS tasks update their Docker images, once said images have been updated in the corresponding registry?

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