jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-61909] ERROR: The container started but didn't run the expected command.

Open
#647 1 comment 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 running an image with an entrypoint:

> ERROR: The container started but didn't run the expected command.

However, when I inspect manually `docker top `, I do see the `cat` command right there.

My entrypoint is of the form:

#!/bin/bash

set -e

source "/opt/some/source.bash"

exec "$@"

 

 

---
Originally reported by tomlankhorst, imported from: ERROR: The container started but didn't run the expected command.


  • status: Open
  • priority: Minor
  • component(s): docker-workflow-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 3
  • imported: 2025-12-07

Raw content of original issue

When running an image with an entrypoint:

> ERROR: The container started but didn't run the expected command.

However, when I inspect manually `docker top <container-id>`, I do see the `cat` command right there.

My entrypoint is of the form:

#!/bin/bash
set -e
source "/opt/some/source.bash"
exec "$@"

 

 

environment

```
Ubuntu 18.04

Jenkins 2.150

docker-workflow 1.21
```

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.