Tag: docker registry

how do you securely push an image to a docker 1.13 registry:2 service from outside the swarm?

I am running a docker registry service in a locally-hosted docker-machine VM in a docker 1.13 swarm on OSX via: docker service create –name registry –with-registry-auth –publish 5000:5000 registry:2 The service is running and I can push/pull images on a swarm manager however when I try to push images to the service from the machine […]

remove docker repository on remote docker registry

Given a docker registry managing multiple docker repositories, how do I delete one of the repositores? In my case, curl -X GET localhost:5000/v2/_catalog {“repositories”:[“repo1”, “repo2”, “repo3”]} I want to remove repository repo1 so that _catalog looks like curl -X GET localhost:5000/v2/_catalog {“repositories”:[“repo2”, “repo3”]} We can see repo1 appears to have only the default “latest” image […]

How to pass argument to Docker file ( specifically to FROM instruction)

I am trying to make ubuntu version as argument and value should get from docker-compose file. compose-file: version: ‘2’ services: rahul: container_name: rahul_container build : context: . dockerfile: Dockerfile args: – uv=ubuntu:16.04 image : rahul_image Dockerfile: FROM scratch ARG uv FROM $uv Output: ERROR: Service ‘rahul’ failed to build: Error parsing reference: “$uv” is not […]

How to use docker with gradle while having private docker registry server

I am trying to setup https://spring.io/guides/gs/spring-boot-docker/#initial with my environment, which has a private registry server @ el-qa-docker.x.x.x:18445 my build.gradle has the following relevant content: dependencies { classpath(“org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE”) classpath(‘se.transmode.gradle:gradle-docker:1.2’) classpath (‘org.codehaus.groovy:groovy-backports-compat23:2.3.5’) } group = ‘james’ apply plugin: ‘java’ apply plugin: ‘eclipse’ apply plugin: ‘idea’ apply plugin: ‘org.springframework.boot’ apply plugin: ‘docker’ task buildDocker(type: Docker, dependsOn: build) { […]

Gitlab docker registry pull failed EOF

1. Introduction I’ve got Gitlab setup using a docker image https://github.com/sameersbn/docker-gitlab (sameersbn/docker-gitlab) and want to setup gitlab private registry. 1.1 Problem All of this is behind reverse proxy load balancer using nginx. I am able to push into registry, but pull has some problem I am not able to resolve. The output tells me retrying […]

docker stack deploy from private repo

Does anyone know how to specify username / password for pulling images from a private registry during a docker stack deploy? I want to be able to do this in one command: docker stack deploy –compose-file docker-compose.yml –username <user> –password <pass> mystack Without this, I first have to do a docker login -u <user> -p […]

Artifactory as docker Registry – docker-remote-cache stays empty

i finally managed to get Artifactory 5.1 running as a docker Registry with nginx in front as Reverse Proxy using the subdomain method with a wildcard SSL certificate. I have the predefinded set of docker repositories configured: docker-local – repo docker-remote – remote-repo docker – virtual repo I’m able to login with docker cli and […]

pull image from remote registry – docker

I have installed docker 1.11.2, I am trying to make one private registry for our office. I followed this link to make private registry, I have successfully pull from localhost but I stuck trying to pull from remote machine. Short Description of what I have done Step1 : docker run -d -p 5000:5000 –restart=always –name […]

How to connect to a remote socket in docker/engine-api?

I want to retrieve all docker images of a remote machine, so I am using docker/engine-api: https://github.com/docker/engine-api I was successful in returning the docker images of my local machine with the following code: package main import ( “fmt” “github.com/docker/engine-api/client” “github.com/docker/engine-api/types” “golang.org/x/net/context” ) func main() { defaultHeaders := map[string]string{“User-Agent”: “engine-api-cli-1.0”} cli, err := client.NewClient(“unix:///var/run/docker.sock”, “v1.22”, nil, […]

Importing Docker Images Images From The Public Registry Into OpenShift

I am trying to deploy an Ubuntu Image from the here on OpenShift Online (Next Generation). These are the steps I followed in doing so $ oc new-project test $ oc new-app jedisct1/phusion-baseimage-latest I then deployed from the WebConsole However I get a failed deploy and an error status of “image pulled back off” on […]

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