Cannot retrieve .Id from 'docker inspect docker.elastic.co/kibana/kibana:6.1.1'


(Aditya) #1

I am trying to build kibana docker with jenkins pipeline.
and am receiving the below error
Cannot retrieve .Id from 'docker inspect docker.elastic.co/kibana/kibana:6.1.1'

The same is getting downloaded and processed good for elastic search.

Docker file (example from elastic search website)

FROM docker.elastic.co/kibana/kibana:6.1.1

COPY kibana.yml /usr/share/kibana/config/kibana.yml

      `  stage('docker-build-and-tag-kibana') {
            steps {
                dir('kibana-docker') {
                    dockerCreateRepository credentialsId: config.dockerRegistryCredentials,
                        repository: "employee/emp-kibana"

                    dockerBuildAndPush tags: ["6.1.1"],
                        credentialsId: config.dockerRegistryCredentials, image: "employee/emp-kibana"
                }
            }
        }`

      `  stage('docker-build-and-tag-elasticsearch') {
            steps {
                dir('elasticsearch-docker') {
                    dockerCreateRepository credentialsId: config.dockerRegistryCredentials,
                        repository: "employee/emp-elasticsearch"

                    dockerBuildAndPush tags: ["6.1.1"],
                        credentialsId: config.dockerRegistryCredentials, image: "employee/emp-elasticsearch"
                }
            }
        }`

(Brandon Kobel) #2

Hey @Fryder, if I pull the kibana docker image using:

docker pull docker.elastic.co/kibana/kibana:6.1.1

I'm able to run the following successfully:

docker inspect docker.elastic.co/kibana/kibana:6.1.1

This leads me to believe that the issue isn't with the kibana docker images, but the issue instead lies within the Jenkins pipeline.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.