dockerhub

Add DockerHub IP addresses on whitelist

∥☆過路亽.° 提交于 2021-02-19 01:06:46
问题 I would like to know the IP address of dockerhub to add them on my whitelist. I didn't find any kind of documentation providing this like the github one. But maybe I'm blind ? Thank you 回答1: You can do curl -v https://index.docker.io:443 to get the ip-address. Currently, the ip address is 52.5.199.233 , however this might change over time. If it change, do the curl again and replace the ip-address. Update: Now, Docker Hub doesn't have static IP that can be whitelist. Docker Hub is based on

Docker hub automated build depend on another docker hub repo

心已入冬 提交于 2021-02-08 15:19:27
问题 I know the procedure and also how to configure an automated docker hub from GitHub or BitBucket. But what I have to do right now is to create two docker hub repositories called Test/main and Test/depend . The first repository Test/main is connected with GitHub and whenever there is a new push the image will be automatically build. But I want to trigger another repository Test/depend whenever there is a change on the Test/main repository. Is it possible to configure such scenario? 回答1: This

Docker hub automated build depend on another docker hub repo

社会主义新天地 提交于 2021-02-08 15:15:14
问题 I know the procedure and also how to configure an automated docker hub from GitHub or BitBucket. But what I have to do right now is to create two docker hub repositories called Test/main and Test/depend . The first repository Test/main is connected with GitHub and whenever there is a new push the image will be automatically build. But I want to trigger another repository Test/depend whenever there is a change on the Test/main repository. Is it possible to configure such scenario? 回答1: This

Docker toolbox volumes on windows doesn't refresh changes on container

落爺英雄遲暮 提交于 2021-02-08 07:10:24
问题 I am starting with docker on windows and I am trying to use volumes for manage data in containers. My host environment is a: Windows 8.1 Docker Toolbox 1.8. Virtual Box 5.0.6 I've created a ngnix image using the following Dockerfile. Dockerfile FROM centos:6.6 MAINTAINER afym ENV WEBPORT 80 RUN yum -y update; yum clean all RUN yum -y install epel-release; yum clean all RUN yum -y install nginx; yum clean all RUN echo "daemon off;" >> /etc/nginx/nginx.conf VOLUME /usr/share/nginx/html EXPOSE

How to view Docker image layers on Docker Hub?

大城市里の小女人 提交于 2020-12-30 05:33:04
问题 I know that I can use this command $ docker images --tree docker history to view the layers of a Docker image, but how do I do that for images on Docker Hub without pulling it? This is so that I know what is on an image before I download it. E.g., for the Tomcat repo, https://registry.hub.docker.com/_/tomcat/, the webpage doesn't seem to show what is on the image. I have to look at the Dockerfile on Github to find out. Update I see this repo https://registry.hub.docker.com/u/tutum/tomcat/ has

parse error: Invalid numeric literal at line 1, column 8 in script

大城市里の小女人 提交于 2020-07-10 06:58:07
问题 I'm getting above error in my shell script. My task is that I want to delete from my Docker Hub private repository tags which are older than 30 days. So here I have written a small script. After executing I'm getting a parse error. It has jq, echo and curl #!/bin/sh username=rashidmd password=xxxxxxxx HUB_TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'$username'", "password": "'$password'"}' https://hub.docker.com/v2/users/login/ | jq -r .token) #echo $HUB

Getting “ErrImageNeverPull” in pods

情到浓时终转凉″ 提交于 2020-06-12 02:49:08
问题 Am using minikube to test out the deployment and was going through thislink And my manifest file for deployment is like apiVersion: extensions/v1beta1 kind: Deployment metadata: name: webapp spec: replicas: 1 template: metadata: labels: app: webapp spec: containers: - name: webapp imagePullPolicy: Never # <-- here we go! image: sams ports: - containerPort: 80 and after this when i tried to execute below commands got output user@usesr:~/Downloads$ kubectl create -f mydeployment.yaml --validate

dockerhub in kubernetes give unauthorized: incorrect username or password with right credentials

 ̄綄美尐妖づ 提交于 2020-05-28 05:47:25
问题 I'm trying to pull a private image from docker hub and every time I get the error "ImagePullBackOff" using describe on the pods I see the error "unauthorized: incorrect username or password", I created the secret in the cluster using the following guide: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ using the cli method with the correct credentials (I checked and I can login on the website with these one) and this is my yaml file. apiVersion: apps/v1

How to prevent docker from searching docker hub

做~自己de王妃 提交于 2020-05-14 19:51:31
问题 I'm standing up a few docker hosts to run in a production environment. We want all of our images to have to go through our container pipeline and we do not want to be able to pull images from Docker Hub (security concerns). How can I stop docker being able to pull images from dockerhub? Ideally I would like to do this via configuring the docker daemon. 回答1: I think it is not possible to prevent docker for searching docker hub.. But it is possible to prevent/avoid pulling image from docker hub