jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-31507] docker.build throw IOExceptions with some sources

Open
#389 24 comments 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
527
Forks
422
Avg merge
10m
Merged PRs (30d)
1

Description

When we use some images like 'centos:centos7', 'nodesource/centos7:0.12.7' or 'nodesource/jessie:0.12.7', it throws an exception when try to inspect the Id from the source:

Example:

FROM nodesource/centos7:0.12.7

RUN yum install -y epel-release

RUN yum install -y npm

Exception:

Running: Record trace of a Docker image used in FROM

Running: Allocate node : Body : End

Running: Allocate node : End

Running: End of Workflow

java.io.IOException: Cannot retrieve .Id from 'docker inspect centos:centos7'

at org.jenkinsci.plugins.docker.workflow.client.DockerClient.inspectRequiredField(DockerClient.java:176)

at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:114)

at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:74)

at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:40)

at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:136)

at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:112)

Thanks,

Henrique

---
Originally reported by henamaral, imported from: docker.build throw IOExceptions with some sources


  • assignee: jglick
  • status: Open
  • priority: Minor
  • component(s): docker-workflow-plugin
  • resolution: Unresolved
  • votes: 19
  • watchers: 26
  • imported: 2025-12-07

Raw content of original issue

When we use some images like 'centos:centos7', 'nodesource/centos7:0.12.7' or 'nodesource/jessie:0.12.7', it throws an exception when try to inspect the Id from the source:

Example:
FROM nodesource/centos7:0.12.7

RUN yum install -y epel-release
RUN yum install -y npm

Exception:
Running: Record trace of a Docker image used in FROM
Running: Allocate node : Body : End
Running: Allocate node : End
Running: End of Workflow
java.io.IOException: Cannot retrieve .Id from 'docker inspect centos:centos7'
at org.jenkinsci.plugins.docker.workflow.client.DockerClient.inspectRequiredField(DockerClient.java:176)
at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:114)
at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:74)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:40)
at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:136)
at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:112)

Thanks,
Henrique

environment

```
CloudBees Docker Workflow 1.2

Workflow 1.10.1

Jenkins 1.631

centos7
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.