Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Docker image not compatible with Jenkins #136

Open
raquelguimaraes opened this issue Sep 3, 2019 · 0 comments
Open

Docker image not compatible with Jenkins #136

raquelguimaraes opened this issue Sep 3, 2019 · 0 comments
Labels
help wanted The maintainers would appreciate help from the community in resolving these issues.

Comments

@raquelguimaraes
Copy link

Docker image not compatible with Jenkins

Description

When trying to run the image as a jenkins build envirornment I get the following result:

ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements).

Steps to Reproduce

Jenkins pipeline declared as:

pipeline {
  agent none

  stages {
    stage('Hawkeye') {
      agent { 
        docker {
          image 'hawkeyesec/scanner-cli:latest'
        }
      }
      steps {
        sh 'hawkeye scan'
      }
    }
  }
}

Version

latest image

Additional Information

Possible Solution

The link on the error message (and some comments on the tickets linked above) suggests using a script as entrypoint so that non arguments can be run as is.

@felixhammerl felixhammerl added the help wanted The maintainers would appreciate help from the community in resolving these issues. label Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted The maintainers would appreciate help from the community in resolving these issues.
Projects
None yet
Development

No branches or pull requests

2 participants