dockerhub

Google Cloud Kubernetes accessing private Docker Hub hosted images

坚强是说给别人听的谎言 提交于 2019-12-21 17:39:39
问题 Is it possible, to pull private images from Docker Hub to a Google Cloud Kubernetes cluster? Is this recommended, or do I need to push my private images also to Google Cloud? I read the documentation, but I found nothing that could explain me this clearly. It seems that it is possible, but I don´t know if it's recommended. 回答1: There is no restriction to use any registry you want. If you just use the image name, (e.g., image: nginx) in pod specification, the image will be pulled from public

Docker push - net/http: TLS handshake timeout

狂风中的少年 提交于 2019-12-21 14:39:40
问题 I've deployed a private docker image registry on an AWS EC2 Ubuntu 14.04 instance. The registry is secured using Let's Encrypt certificate. Unfortunately, I'm getting net/http: TLS handshake timeout for docker push operations that take longer than 300s: This is the output of the time'd command: [luqo33@home-pc containers]$ time docker push <my-registry-domain:5000>/nginx The push refers to a repository [<my-registry-domain:5000>/nginx] dda5a806f0b0: Layer already exists ec35cfccb7f7: Layer

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

In a Dockerfile, How to update PATH environment variable?

纵饮孤独 提交于 2019-12-17 05:34:47
问题 I have a dockerfile that download and builds GTK from source, but the following line is not updating my image's environment variable: RUN PATH="/opt/gtk/bin:$PATH" RUN export PATH I read that that I should be using ENV to set environment values, but the following instruction doesn't seem to work either: ENV PATH /opt/gtk/bin:$PATH This is my entire Dockerfile: FROM ubuntu RUN apt-get update RUN apt-get install -y golang gcc make wget git libxml2-utils libwebkit2gtk-3.0-dev libcairo2 libcairo2

In a Dockerfile, How to update PATH environment variable?

时光毁灭记忆、已成空白 提交于 2019-12-17 05:34:46
问题 I have a dockerfile that download and builds GTK from source, but the following line is not updating my image's environment variable: RUN PATH="/opt/gtk/bin:$PATH" RUN export PATH I read that that I should be using ENV to set environment values, but the following instruction doesn't seem to work either: ENV PATH /opt/gtk/bin:$PATH This is my entire Dockerfile: FROM ubuntu RUN apt-get update RUN apt-get install -y golang gcc make wget git libxml2-utils libwebkit2gtk-3.0-dev libcairo2 libcairo2

How do docker containers resolve hostname of other docker containers running on the same machine?

你。 提交于 2019-12-13 13:34:30
问题 I have started to use docker and liking it mostly because Docker containers are kind of light-weight VMs. But I am unable to figure out, how docker containers may be able resolve each-other's hostnames. They can connect to each other using there IPs, but not using their hostnames, I cannot even edit /etc/hosts in the containers to make up for that somehow. When I restart the containers, they get different IPs and hence I want to use the hostnames in place of IPs to communicate with each other

Docker Registry name resolution

房东的猫 提交于 2019-12-13 04:44:28
问题 I'm working on a simple REST client for Docker Registry. For private registries, name resolution is pretty simple; if the image name is myregistry.io/myimage:latest , I look for https://myregistry.io/v2 and query the API there. However, I notice that for docker hub, it doesn't quite work that way. If I'm looking for ubuntu , I can expand that to docker.io/ubuntu:latest , but https://docker.io/v2 returns a 307 redirect to https://www.docker.com/v2 , which just returns HTML. The actual registry

How to create a docker-compose.yml file with both public and private images?

送分小仙女□ 提交于 2019-12-13 03:55:37
问题 I'm trying to create a docker-compose.yml file for a specific team of developers at work. I've pushed our private images up to a private registry (Azure Container Registry) and that's ok/working :) Next I'm trying to test out how to get the dev's of this particular team to run the docker-compose file which will pull down all the images and then start them all. I've figured out that the developers will need to do this: -> docker login -u <admin username of my registry> <domain of the registry>

How to run multiple processes in a single docker container

你。 提交于 2019-12-13 00:53:26
问题 Is it possible to generate one docker image that will contain many applications? or at least one image that a group many images? My situation is that in our company we have many applications that we know in fact that we will need to deploy them all in the same server, and we need to make very simple the deployment, so deploy image by image is not what we want, so, I am wondering, how can I group them? that only with one command everything should be executed? 回答1: The best practice with Docker

Can I inform QNAP if my Docker Image is Intel or Arm

大城市里の小女人 提交于 2019-12-12 14:22:00
问题 QNAP ContainerStation supports searching for Docker images on Docker Hub . QNAP ContainerStation is supported on both their Intel and Arm platforms. I have an Intel and an Arm Image of my application, if user searches for image (songkong) both are displayed but of course only the Intel version will work on Intel QNAP and only Arm version will work on Arm QNAP. It would be better for the customer if QNAP would just list the valid one, since QNAP dont make it very clear what the cpu is for