Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42044

Cannot use containerTemplate image from private registry

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • kubernetes-plugin
    • None
    • * Operating System: CentOS Linux 7, 3.10.0-327, x86_64
      * JRE/JDK: Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
      * Jenkins version: 2.46 (via rpm)
      * kubernetes-plugin version: 0.10

      Kubernetes plugin is not able to create the podTemplate with containers requiring images from a private repository.

      Events:
        FirstSeen	LastSeen	Count	From			SubObjectPath			Type		Reason		Message
        ---------	--------	-----	----			-------------			--------	------		-------
        40s		40s		1	{default-scheduler }					Normal		Scheduled	Successfully assigned kubernetes-68697b8f053a4aa2b8aad45e23033f1b-a3d7dd6a1f3cb to 10.0.0.74
        36s		36s		1	{kubelet 10.0.0.74}	spec.containers{maven}	Normal		Pulling		pulling image "docker.mycompany.cl/maven:latest"
        36s		36s		1	{kubelet 10.0.0.74}	spec.containers{maven}	Warning		Failed		Failed to pull image "docker.mycompany.cl/maven:latest": Error: image maven:latest not found
        36s		36s		1	{kubelet 10.0.0.74}	spec.containers{jnlp}		Normal		Pulling		pulling image "jenkinsci/jnlp-slave:alpine"
      

      This happens even if the image docker.mycompany.cl/maven:latest is available locally in the node

            csanchez Carlos Sanchez
            perrefe Pablo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: