[ Kube 69 ] Using Private Docker Registry in Kubernetes

Sdílet
Vložit
  • čas přidán 8. 12. 2019
  • In this video, I will show you how to run a private Docker registry and how to use private docker registry in your Kubernetes cluster to pull images. You can run private Docker registry using Docker containers either using plain Http or can be secured using https. I will show you both the ways.
    You can use pullImageSecrets option in your Kubernetes manifests to store access credentials for your private docker registry.
    My Github repo:
    github.com/justmeandopensourc...
    github.com/justmeandopensourc...
    Learn Kubernetes Playlist:
    • Learn Kubernetes
    Hope you enjoyed this video. Please share it with your friends and don't forget to subscribe to my channel. For any questions/issues/feedback, please leave me a comment and I will get back to you at the earliest.
    Thanks for watching.
    If you wish to support me:
    www.paypal.com/cgi-bin/webscr...
    #learnkubernetes #justmekubernetes #dockerregistry #kubernetes

Komentáře • 117

  • @ulrichoke9639
    @ulrichoke9639 Před 4 lety +2

    Very clear, All three scenarios covered simply in a short time. Interesting !

  • @peliusrex2730
    @peliusrex2730 Před 2 lety +1

    Awesome tutorial. Thanks for walking through common errors. Most tutorials just show the right way to do stuff without showing the common pitfalls.

  • @taharbounsiar137
    @taharbounsiar137 Před 3 lety +1

    Hi Vankat, thanks for this great work, im learning a lot from your videos about k8s.

  • @FabioPedrazzoliGrazioli
    @FabioPedrazzoliGrazioli Před 3 lety +3

    Great information, thanks! I like a lot your style, is like watching a live demo but ... on demand :D
    I see you are very good with shells already, here are two things I feel sharing for the benefits of everyone reading:
    CTRL+l (lower letter "L") works like typing the command "clear"
    ALT+. pastes the last arg of the previous command line
    All the best and keep up with the good work!
    And, and almost forgot :) I loved the background at the beginning, Namaste brother _/\_ ; )

    • @justmeandopensource
      @justmeandopensource  Před 3 lety +2

      Hi Fabio, many thanks for your comment. Its hard for me erase my muscle memory about "clear". Reaching CTRL involves moving my hand little bit down. I use ESC+. for your ALT+. suggestion.
      Namaste and thanks for watching.

  • @leonardogodoi533
    @leonardogodoi533 Před 2 lety +1

    You helped me a lot! I was really struggling to create a registry. Thank you!

  • @mustufamithaiwala7205
    @mustufamithaiwala7205 Před 4 lety +2

    Awesome Venkat, Good Going!!!

  • @sahaniarunitm
    @sahaniarunitm Před 3 lety +1

    your video once again helped me for solving insecure issue from registry.Great

  • @ramkumarmusulla9113
    @ramkumarmusulla9113 Před 4 lety +1

    Nice Demonstration. Thanks Venkat.

  • @AnandKumar-dc2bf
    @AnandKumar-dc2bf Před 4 lety +1

    Simply awesome...

  • @Pyrusmalus
    @Pyrusmalus Před 3 lety +1

    Thanks is not enough the ways to taught.. shukriya❤️

  • @tan3ryigit
    @tan3ryigit Před 2 lety +1

    Very good tutorial indeed

  • @kiranpadam5703
    @kiranpadam5703 Před 4 lety +1

    very good venkat,thanks

  • @zerobig5517
    @zerobig5517 Před 3 lety

    Hello, my friend, Thank you for posting useful and informative content every time.
    I have a question about the private container registry. Do you think it's better to build and use the container registry ourselves even in a sensitive customer service environment with some traffic and an increasing trend? For your information, we are planning to use Managed Kubernetes, but the container registry in the cloud is not allowed. Do you have any additional options or recommendations to consider in this situation?

  • @dirbacke
    @dirbacke Před 4 lety

    Thank you for your great tutorials.
    I was wondering if you could help me with a tricky question. I followed one of you other tutorials to setup Jenkins using Helm. And now I would love for Jenkins to get the images from the Docker registry that I have setup using this tutorial. But all I get from Jenkins logs is "x509: certificate signed by unknown authority".
    I have changed the openssl.cnf to contain
    [alt_names]
    IP = "172.x.x.x" # the IP address of my docker registry on a private cloud server.
    What can I do to get the images to Jenkins using my private Docker registry?
    I am grateful for any help.

  • @ylcnky9406
    @ylcnky9406 Před 4 lety +3

    Hi Venkat, today I finally completed the Kubernetes series in your playlist. Great great great thanks. Are you planning to cover deployment and usage of Kafka and Apache Spark with Kubernetes? If not can you please consider this as a request for future videos?

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +4

      Wow. You managed to watch all the videos. Many thanks. My focus at the moment is on kubernetes, AWS and MongoDB. I am not entirely sure whether I will have time to do Kafka and Spark. I haven't used either of those. So that will be something I need to learn first. Cheers.

  • @8802148204
    @8802148204 Před 3 lety

    Is daemon.json still required on workers when I use TLS certs for docker-registry in 2nd approach?
    I just don't want to make this change on all worker hosts.

  • @ashwathmendan732
    @ashwathmendan732 Před 4 lety +2

    Thank you so much sir

  • @vaporlander2621
    @vaporlander2621 Před 4 lety +1

    Great - Thanks a lot

  • @abhijeetsamanta4246
    @abhijeetsamanta4246 Před 4 lety +1

    H I Venkat, Thanks for this awesome tutorial which I was looking, however If possible you help me how I can make the docker image in private of Node.js based backed and use in k8s as pods?

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +1

      Hi Abhijeet, thanks for watching. You will have to do docker login to login to your private docker registry. Then build and push the image to this private registry. Other steps should be similar as shown in this video. Cheers.

  • @TheJrocksk8
    @TheJrocksk8 Před 4 lety +1

    Hello,
    What does the curly braces represent in the end of the yaml file? And how does it relate with the path in the local host?
    Here is a part of the JSON code.
    ....
    volumes:
    - docker-registry-data:/var/lib/registry
    volumes:
    docker-registry-data: {}

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +2

      Hi Jorge, thanks for watching. Its a notation for docker volumes. We are not mounting any existing directory inside the container but creating docker volumes.
      volumes:
      docker-registry-data: {}
      is same as
      volumes:
      docker-registry-data:
      We are just specifying that no options are passed to this volume. Just a docker volume will get created with that name and it will reside under /var/lib/docker/volumes.
      Thanks,.

  • @yamen1150
    @yamen1150 Před rokem

    Thank you for the tutorial..
    I wonder why you didn't need to add the "domain.crt" file in your kubernetes cluster hosts!
    How did the local private registry with an enabled TLS accept the connection without public key (the CRT file in this case)? Could it be because the docker was still configure to accept your registry as insecure, therefore the TLS was bypassed?
    I have a k8s cluster created by kubeadm and I'm not able to pull images through kubectl while I can through docker. The error "x509: certificate signed by unknown authority" haunts me down when I create a pod, eventhough I have everything configured properly with the CRTs added.

  • @dfytq
    @dfytq Před 2 lety

    Thanks man. can we expose this local registry as https using nginx? if yes than how? or what is the best way to expose it as https service so that other kubernetes cluster can access it over the internet as a secured registry?

  • @iknownothing8949
    @iknownothing8949 Před 3 lety

    Hello, two question, followed the video and all was success.
    The first issue is when trying to building/tagging and pushing an image from local computer to private registry on the server (linode) - i get no errors (all seems to work fine), but I cannot see the images (I am logged in via docker login etc.)
    so then I tried doing a curl -k localhost:5000/v2/_catalog => Received HTTP/0.9 when not allowed
    when doing: curl -k localhost:5000/v2/_catalog (tried the ip of the node as well) => {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail" and tried passing the --cert and --key - and same error. Any hints would be appreciated.

  • @konstantinosraftopoulos9918

    I created the docker registry in my kubernetes master vm. I followed all the steps that you described i your video and more important i filled in my worker node vm in the /etc/docker/daemon.json the "insecure-registries": ["ip_of_master_node" : 5000] but the error http: server gave HTTP response to HTTPS client continue to appear. :/
    **Should i fill also the daemon.json file woth the "insecure-registries"?

  • @myvillagemyfriends7306
    @myvillagemyfriends7306 Před 4 lety +1

    Master Super

  • @Youdude2
    @Youdude2 Před 3 lety +1

    can you do a video on harbor for registry?

  • @gbrt9569
    @gbrt9569 Před 4 lety +2

    Hi Venkat, slightly off topic, but what are you using for the that ghost shell completion? thats pretty cool !! is it something like 'powerline'?...also the status bar at the bottom of your screeen showing your IP etc, what is that?

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +1

      HI Gary, thanks for watching. I am using Mnajaro with I3 Tiling Window Manager. For shell, I use ZSh + Oh-my-zsh + zsh-autosuggestion on Gnome Terminal. It is zsh-autosuggestion plugin that auto suggests commands from my history.
      github.com/ohmyzsh/ohmyzsh
      github.com/zsh-users/zsh-autosuggestions
      I have also done few videos on My customization and got some Ansible playbooks to automate the setup. The playlist is at czcams.com/play/PL34sAs7_26wOgqJAHey16337dkqahonNX.html
      Thanks.

    • @gbrt9569
      @gbrt9569 Před 4 lety +1

      Thats great, thanks for that :) .. i dont suppose you could share some of the config in your zshrc file? or is it pretty standard?

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +1

      @@gbrt9569 My zshrc is pretty standard one. I have a separate .zshrc-venkatn where I have my aliases/exports/functions and I source it in .zshrc. Only other thing I have updated in my standard zshrc is added zsh-autosuggestions, git, kubectl to the plugins list.

  • @harshgoyal6822
    @harshgoyal6822 Před 4 lety +2

    Very clear and simple way to explain things. Can you pls let me know is there any platform when i can practice this stuff like production level? Because right now i am working in QA and i dont have exposure to devops. But i want to get into Kubernetes and Devops

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +1

      Hi Harsh, thanks for watching. You can always practise this in your laptop as most of my videos are bare-metal based and not cloud based. Or you can get yourself a free Google Cloud account and use the free credits for 12 months.
      czcams.com/play/PL34sAs7_26wM4ETdsdrRrO1euoUtO4jF6.html
      There are lots of ways to start your learning adventure.

    • @harshgoyal6822
      @harshgoyal6822 Před 4 lety

      @@justmeandopensource Hi Thanks for replying. Yes i started using AWS.
      Actually my target is CKAD or CKA certification. Can you pls provide me some content or pdf book etc which can help me?
      THanks in advance!

  • @SonNguyen-pw8lm
    @SonNguyen-pw8lm Před 4 lety +1

    Hello bro, How to remove image in docker registry? Thanks bro

  • @dmitryparkhomenko5009
    @dmitryparkhomenko5009 Před 3 lety +1

    Hi Venkat, how to install docker registry ui on the k8s, sometimes it comfortable manage docker images

    • @justmeandopensource
      @justmeandopensource  Před 3 lety +1

      Hi Dmitry, thanks for watching. Do you have any particular UI in mind? I can give it a try.

  • @kausikdas9664
    @kausikdas9664 Před 3 lety +1

    Hi, Thank you for the awesome tutorial ......in the 11:26 minute of the video you are add insecure registries in the worker1 and 2 nodes to solve the https issue, i am unable to get the ips of the worker nodes and unable to to do ssh with root@worker1 &2 , it says "ssh: Could not resolve hostname worker1: Temporary failure in name resolution".....please help

    • @justmeandopensource
      @justmeandopensource  Před 3 lety +1

      Hi Kausik, thanks for watching. Are all the machines virtual machines? Why can't you get the IP addresses for them?

  • @TheSibaSwain
    @TheSibaSwain Před 4 lety +1

    Hi Venkat,is it possible to setup a UI for the registry to browse through all the repository and images. it will be great if you can post a tutorial on this. Thank you

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +1

      Hi Siba, thanks for watching. There are lots of Github projects for this. A quick search gave me this one.
      hub.docker.com/r/joxit/docker-registry-ui/

    • @TheSibaSwain
      @TheSibaSwain Před 4 lety

      @@justmeandopensource Thanks venkat for your reply. I am using the below container to setup one,but seems misiing something.
      registry.hub.docker.com/r/konradkleine/docker-registry-frontend
      This is my compose file:
      version: '3'
      services:
      docker-registry:
      container_name: docker-registry
      image: registry:2
      ports:
      - 5000:5000
      restart: always
      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:
      - ./registry-data:/var/lib/registry
      - ./certs:/certs
      - ./auth:/auth
      docker-registry-ui:
      container_name: docker-registry-ui
      image: konradkleine/docker-registry-frontend:v2
      ports:
      - 8080:80
      environment:
      ENV_DOCKER_REGISTRY_HOST: docker-registry
      ENV_DOCKER_REGISTRY_PORT: 5000
      I can push image to registry but in UI nothing showing up

  • @vijaykaushik9080
    @vijaykaushik9080 Před 3 lety +1

    Great Video! But i am still not clear where this private registry resides. Is in K8s cluster or another standalone server/deployment server ?

    • @justmeandopensource
      @justmeandopensource  Před 3 lety +1

      Thanks for watching. If you look at the notes I shown at the start of the video, you will see that the private docker registry is running on my host linux machine outside of the kubernetes cluster. This video is just to demonstrate how to connect to a private docker registry for pulling container images.

  • @prakharkurele3061
    @prakharkurele3061 Před 4 lety +1

    Brother I have deploy docker registry as node port and it will work on localhost:portnumber from all the nodes. Is this right.

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +1

      Hi Prakhar, yes it should be accessible within all nodes using localhost:. Thanks.

  • @stevecorbin9102
    @stevecorbin9102 Před 4 lety +1

    Hi Venkat, I am getting doesn't contain any IP SANs error. When you use the secure docker registry do you still need the daemon.json file?

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +2

      Hi Steve, thanks for watching. It depends on the way you create the certificate. The usual practice is to use subject alternate names SAN while generating the certificate. For example, if you are generating a certificate for docker-registry.example.com, then you would also want to include docker-registry (short name) in SAN in certificate. If you don't include alias (SANs), then you will have to make sure to access the server using the same name given in the certificate (docker-registry.example.com) and when you use just the shortname docker-registry, you will have certificate error. So you either update the certificate accordingly or use whatever cn (common name) you given in the certificate for the docker registry or add an entry for insecure registry in daemon.json. Hope it makes sense.

    • @MohitVerma-yj1pq
      @MohitVerma-yj1pq Před 3 lety +1

      add subjectAltName = "IP:192.x.x.x" in openssl config file

  • @prabhasrockstar
    @prabhasrockstar Před rokem

    I setup docker registry that deploy on k8s cluster but I getting error ssl certificate issue

  • @ashishjohn9708
    @ashishjohn9708 Před 3 lety +1

    Hi Venkat, in docker hub when we select public repo instead of private i am still unable to pull image in kubernetes cluster why?

    • @justmeandopensource
      @justmeandopensource  Před 3 lety +1

      Hi Ashish, thanks for watching. You shouldn't be having any problems pulling from public docker repo. May be if you post the errors it will be useful. Cheers.

  • @abhijeetsamanta4246
    @abhijeetsamanta4246 Před 4 lety +1

    Hi Venkat, I am getting error while push the image using docker push. error : "The push refers to repository [localhost:8000/dfarm-app1]
    Get localhost:8000/v2/: read tcp 127.0.0.1:56584->127.0.0.1:8000: read: connection reset by peer". Could you please help me to fix the issue?

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +2

      Hi Abhijeet, thanks for watching. Have you added the insecure-registries to the docker config? Worth adding the config and trying it again. Thanks.

  • @nikhilrajan2370
    @nikhilrajan2370 Před 3 lety +2

    Also i am having to use sudo , to access docker .. can i bypass this ..without adding the user explicitly to docker user

    • @justmeandopensource
      @justmeandopensource  Před 3 lety +2

      Hi Nikhil, thanks for watching. There is only two way. Either you run docker commands with sudo or add your user to docker group.

  • @muradheyderov
    @muradheyderov Před 4 lety +2

    👏👏👏

  • @chaitanyayadav1889
    @chaitanyayadav1889 Před 3 lety +2

    Hi,
    Can you suggest that which is of reasonable cost
    Docker private registry or Azure container registry ?

    • @justmeandopensource
      @justmeandopensource  Před 3 lety +2

      Hi Chaitanya, thanks for watching. I have no idea about the cost as I haven't used any of those.

  • @zhang20244
    @zhang20244 Před 4 lety +1

    Very cool, could you show how to install Kubeflow on k8s ? that is machine learning platform, and how to config ISTIO for micro services gateway

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +1

      Hi Frank, thanks for watching. I haven't explored Kubeflow yet. If I get some time I will have a play with it and decide if I can make a video. Cheers.

    • @zhang20244
      @zhang20244 Před 4 lety +1

      Thank you so much, your video very easy to understand, I like all of your training video

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +1

      @@zhang20244 You are welcome. Cheers.

  • @anilprajapati4922
    @anilprajapati4922 Před 4 lety +1

    After adding the insecure-registries to the docker config, till getting the error in the kubectl events, Failed to pull image "10.6.0.95:5000/nginxprivate": rpc error: code = Unknown desc = Error response from daemon: Get 10.6.0.95:5000/v2/: http: server gave HTTP response to HTTPS client.. can you help me ?

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +1

      Hi Anil, thanks for watching. What exactly you added in docker daemon.json file? It seems you haven't added the right url for docker registry or you haven't restarted the docker service on the worker nodes.

    • @konstantinosraftopoulos9918
      @konstantinosraftopoulos9918 Před 2 lety

      @@justmeandopensource i have the same problem. I created the docker registry in my master node and in my worker node in the daemon.json i provided the ip of the master, master_ip:5000, but doesnt work..

  • @diegogarciaarriaza5754
    @diegogarciaarriaza5754 Před 4 lety +1

    Hey friend, thank you for the tutorial, very clean and clear
    But I need your help, when I try to deploy with kubectl run mytest ... y get this:
    "ImagePullBackOff"
    And if we see the logs....
    " Normal Scheduled 54s default-scheduler Successfully assigned default/mytest to kunode1
    Normal BackOff 23s (x2 over 53s) kubelet, kunode1 Back-off pulling image "localhost:5000/myalpine:v1"
    Warning Failed 23s (x2 over 53s) kubelet, kunode1 Error: ImagePullBackOff
    Normal Pulling 8s (x3 over 53s) kubelet, kunode1 Pulling image "localhost:5000/myalpine:v1"
    Warning Failed 8s (x3 over 53s) kubelet, kunode1 Failed to pull image "localhost:5000/myalpine:v1": rpc error: code = Unknown desc = Error response from daemon: Get localhost:5000/v2/: dial tcp [::1]:5000: connect: connection refused
    Warning Failed 8s (x3 over 53s) kubelet, kunode1 Error: ErrImagePull"
    Is this normal?, I have try with user/pass registry:2, setting secrets, etc...
    And yes, I have configured the registry ok and I can see there the image.
    Pleeeeeease, tell my something, that is insane!
    Thank you again!!
    By the way, im using
    Debian GNU/Linux 9.12
    Client Version: v1.18.1
    Server Version: v1.14.1

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +1

      HI Diego, thanks for watching.
      The issue you need to focus is around these lines
      "Failed to pull image "localhost:5000/myalpine:v1": rpc error: code = Unknown desc = Error response from daemon: Get localhost:5000/v2/: dial tcp [::1]:5000: connect: connection refused"
      The k8s node is having issues connecting to port 5000 on localhost which suggests that the registry service is not actually running.
      Let me ask you few things.
      1. Where is your docker registry running? What is the IP address of this server? Is this your host machine?
      2. How did you set up your k8s cluster? Are k8s nodes, virtual machines?
      Try changing the
      "localhost:5000/myalpine:v1" in your mainfest to
      "ipaddress:5000/myalpine:v1" with ip address of the machine where private docker registry is running.
      Cheers.

  • @sumitneg1984
    @sumitneg1984 Před 3 lety +1

    how to pull the docker registry on localhost if the container run time engine is containerd in the kubernetes worker nodes. The Https error is coming while pulling the image

    • @justmeandopensource
      @justmeandopensource  Před 3 lety +1

      Hi Sumit, thanks for watching. Can you paste the actual error message?

    • @sumitneg1984
      @sumitneg1984 Před 3 lety

      @@justmeandopensource "server gave http response to https client" some of the action that i took are as under:-
      1. updated Toml config file of containerd
      [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
      endpoint = ["registry-1.docker.io"]
      [plugin."io.containerd.grpc.v1.cri".registry.mirrors."test.registry"]
      endpoint = ["test.registry:5000"]
      [plugins."io.containerd.grpc.v1.cri".registry.configs]
      [plugins."io.containerd.grpc.v1.cri".registry.configs."test.registry".tls]
      insecure_skip_verify = true
      where test.registry is the domain name of my local repository whaich is running on port 5000. It did not work still the same error was coming .
      2. second, step was that I binded the local registry with self sign certificate which were mounted in the volume of local repository container. SO now it is working on port 443 (ie test.registry). now the privious error is gone but it is still not pulling image. logs state that image cant be pulled.
      pl help

    • @sumitneg1984
      @sumitneg1984 Před 3 lety

      and the error is that x.509 certificate cannot be trusted

  • @iknownothing8949
    @iknownothing8949 Před 3 lety +1

    What are the advantages of using private registry vs own repo/account at Docker Hub.

    • @justmeandopensource
      @justmeandopensource  Před 3 lety +2

      You host the repository yourself so everything is under your control. Don't have to rely on cloud or any third party provider and you don't have to trust anyone for storing your images securely.

    • @iknownothing8949
      @iknownothing8949 Před 3 lety +1

      @@justmeandopensource Thank you. 👍

    • @justmeandopensource
      @justmeandopensource  Před 3 lety +1

      @@iknownothing8949 You are welcome. Cheers.

  • @lakshmicheran6341
    @lakshmicheran6341 Před rokem

    hi we are still facing imagepullback

  • @nikhilrajan2370
    @nikhilrajan2370 Před 3 lety +1

    Can we create a private docker registry and push and pull from it from an external docker client

    • @justmeandopensource
      @justmeandopensource  Před 3 lety +2

      Hi Nikhil, yes you can. All you need is a docker registry accessible to clients and credentials if it is password protected.

    • @nikhilrajan2370
      @nikhilrajan2370 Před 3 lety +1

      @@justmeandopensource ok so i am going to set this up on the master node of my unmanaged on prem kubernetes , mostly because of a lack of hardware . So to configure it as a insecure registry , i would have to do a docker restart , would that mess up my cluster

    • @justmeandopensource
      @justmeandopensource  Před 3 lety +2

      @@nikhilrajan2370 Yes, after editing /etc/docker/daemon.json, you need to restart docker service which will cause an interruption to all the running docker containers and you will have a very brief downtime of few seconds where your cluster won't be accessible.

  • @ahmedyousry784
    @ahmedyousry784 Před 4 lety +1

    Failed to pull image "localhost:5000/ubuntu": rpc error: code = Unknown desc = Error response from daemon: Get localhost:5000/v2/: dial tcp 127.0.0.1:5000: connect: connection refused

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +1

      Hi Ahmed, where is your private docker registry running? You are using localhost:5000/ubuntu as the url which won't work inside the worker node as docker registry may not be running there. Please change localhost to ip address of the machine where you are running the docker registry.

    • @ahmedyousry784
      @ahmedyousry784 Před 4 lety

      @@justmeandopensource Failed to pull image "192.168.39.1:5000/my-ubuntu": rpc error: code = Unknown desc = Error response from daemon: Get 192.168.39.1:5000/v2/: http: server gave HTTP response to HTTPS client

    • @ahmedyousry784
      @ahmedyousry784 Před 4 lety

      and i added "insecure-registries" : ["myregistrydomain.com:5000"]

  • @esse7847
    @esse7847 Před 4 lety

    Hey Venkat, i'm getting this error "Failed to pull image "ip_address:5000/valiyev/myalpine:v1": rpc error: code = Unknown desc = failed to pull and unpack image "ip_address:5000/valiyev/myalpine:v1": failed to resolve reference "ip_address:5000/valiyev/myalpine:v1": failed to do request: Head ip_address:5000/v2/valiyev/myalpine/manifests/v1: x509: cannot validate certificate for ip_address because it doesn't contain any IP SANs".
    I'm using Docker Nodes (kuberntes Cluster created with kind).
    You have any idea how to fix it ?

    • @justmeandopensource
      @justmeandopensource  Před 4 lety +1

      Hi Ali,
      Thanks for watching. Since you are running private Docker registry, you may not have set up ssl/tls on your docker registry or you might have used self-signed certificates. In either case, any docker client trying to connect to that private Docker registry will fail due to certificate errors. You will have to add insecure-registries options with the ip address of the machine where your private registry is running and then restart docker service.
      Check the solution here.
      github.com/kubernetes-sigs/kind/issues/110

  • @StillMusician
    @StillMusician Před 4 lety +2

    Bless you (couldn't withstand it).

  • @harshgoyal6822
    @harshgoyal6822 Před 4 lety +1

    2 persons who disliked this video, their accounts should be deleted from youtube

  • @soumyakantikar1152
    @soumyakantikar1152 Před 2 lety

    When using kubectl to create a pod and deploy the image it gives the error:
    Failed to pull image "192.168.100.11:5000/myorg/image:1": rpc error: code = Unknown desc = failed to pull and unpack image "192.168.100.11:5000/myorg/image:1": failed to resolve reference "192.168.100.11:5000/myorg/image:1": failed to do request: Head "192.168.100.11:5000/v2/myorg/image/manifests/1": http: server gave HTTP response to HTTPS client. But if I perform docker pull from the worker node, then it pulls the image from the registry in the master node vm.
    Any idea as to what is the issue in here?

  • @niketjoshi9234
    @niketjoshi9234 Před rokem

    Hi I have tried these steps to create local registry but i am getting the below error.
    rpc error: code = Unknown desc = failed to pull and unpack image "MYIP:5000/sampleflask:1.0": failed to resolveMYIP:rence "MYIP:5000/sampleflask:1.0": failed to do request: Head "MYIP:5000/v2/sampleflask/manifests/1.0": x509: cannot validate certificate for MYIP because it doesn't contain any IP SANs
    Could please tell my what could be the reason