docker-registry

How to substitute variable value in “docker run” command

浪子不回头ぞ 提交于 2019-12-20 06:33:51
问题 I am using a bash script and trying to assign a fingerprint value as below export FINGERPRINT=D0:19:C5:80:42:66:56:AC:6F docker run --rm -i -v /var/run/docker.sock:/var/run/docker.sock --name ucp docker/ucp join --replica --fingerprint $FINGERPRINT However, bash is not at all substituting the value of $FINGERPRINT 回答1: Try this: export FINGERPRINT=D0:19:C5:80:42:66:56:AC:6F echo `docker run --rm -i -v /var/run/docker.sock:/var/run/docker.sock --name ucp docker/ucp join --replica --fingerprint

Listing the tags of a Docker image on a Docker hub through the HTTP API

两盒软妹~` 提交于 2019-12-18 17:27:14
问题 I would like to list the tags of a Docker image official Docker hub through its HTTP interface, but I am a bit confused. As there seems to two versions of them: https://docs.docker.com/v1.6/reference/api/registry_api/ https://docs.docker.com/v1.6/registry/spec/api/ I managed to get them through sending a GET request to this endpoint: https://index.docker.io/v1/repositories/{my-namespace}/{my-repository}/tags along with basic authentication credentials. I am not sure if there is a correct one

How are Docker image names parsed?

淺唱寂寞╮ 提交于 2019-12-18 13:06:21
问题 When doing a docker push or when pulling an image, how does Docker determine if there is a registry server in the image name or if it is a path/username on the default registry (e.g. Docker Hub)? I'm seeing the following from the 1.1 image specification: Tag A tag serves to map a descriptive, user-given name to any single image ID. Tag values are limited to the set of characters [a-zA-Z_0-9]. Repository A collection of tags grouped under a common prefix (the name component before :). For

How to delete image from Azure Container Registry

不问归期 提交于 2019-12-18 11:51:27
问题 Is there a way to delete specific tags only? I only found a way to delete the whole registry using the REST/cli-acr Thanks 回答1: We are hardening up the registry for our GA release later this month. We've deferred all new features while we focus on performance, reliability and additional azure data centers, delivering ACR across all public data centers by GA. We will provide deleting of images and tags in a future release. We're started to use https://github.com/Azure/acr/ to track features

Not able to login in docker private repositry

℡╲_俬逩灬. 提交于 2019-12-18 04:26:10
问题 I configured insecure registry by self singed certificate.After providing user name and password , getting error message as " Error response from daemon: Get https://ip address:5000/v1/users/: x509: certificate signed by unknown authority" . 回答1: Execute following steps to docker registry with private certificates: Generate private SSL Certificate with following command. This will create certs folder with two file domain.crt, domain.key openssl req -newkey rsa:4096 -nodes -sha256 -keyout

How to move Docker containers between different hosts?

蹲街弑〆低调 提交于 2019-12-17 17:21:53
问题 I cannot find a way of moving docker running containers from one host to another. Is there any way I can push my containers to repositories like we do for images ? Currently, I am not using data volumes to store the data associated with applications running inside containers. So some data resides inside containers, which I want to persist before redesigning the setup. 回答1: You cannot move a running docker container from one host to another. You can commit the changes in your container to an

Pushing images to docker registry using docker-client api

风流意气都作罢 提交于 2019-12-12 21:07:43
问题 While exploring docker-client api (java) what certificates are exactly required for setting up connection to the docker daemon running on a vm. The code which I found online : { // Create a client based on DOCKER_HOST and DOCKER_CERT_PATH env vars final DockerClient docker = DefaultDockerClient.fromEnv().build(); // Pull an image docker.pull("busybox"); } The link to above example is available at : https://github.com/spotify/docker-client What I intend to do is access docker-daemon running on

How to push only whats changed with Docker push?

こ雲淡風輕ζ 提交于 2019-12-12 19:21:38
问题 A . Here is how I created the image: Got latest Ubuntu image Ran as container and attached to it Cloned source code from git inside docker container Tagged and pushed docker image to my registry B . And from a different machine I pulled, changed and pushed it by doing: Docker pull from the registry Start container with the pulled image and attach to it Change something in the cloned git directory Stop container, tag and push it to registry Now the issue I'm seeing is that every time B is

Is there a docker registry cluster solution for private purpose?

孤者浪人 提交于 2019-12-12 10:37:30
问题 I am looking for an open source solution to sync several docker registries. Could anybody give me some hints about this? 回答1: The easiest way to set up a docker registry is using the official docker registry. This allows you to easily run a registry server with a configurable storage backend. As others have mentioned you can use S3 or Google Cloud storage. (I have personally used Google Cloud storage and have not run into any problems). I would also check out this digital ocean post about

Private docker registry with self signed TLS certificates not accepting valid basic authorization credentials

有些话、适合烂在心里 提交于 2019-12-12 06:50:21
问题 I have deployed a private docker registry (registry version 2.7) using Ansible (code given below). Followed official link https://docs.docker.com/registry/deploying/. registry: restart: always image: registry:2 ports: - 5000:5000 environment: REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt REGISTRY_HTTP_TLS_KEY: /certs/domain.key REGISTRY_AUTH: htpasswd REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm volumes: - /path/data:/var/lib/registry - /path