Cannot run JHipster docker

2/2/2017

Im trying to run https://hub.docker.com/r/jhipster/jhipster/ as part of a Jenkins build on OpenShift, with CentOS host, but am getting the following error:

Failed to start container with docker id 38194274e387 with error: 

Error response from daemon: 
{"message":"invalid header field value \"oci runtime error: container_linux.go:247: 
starting container process caused \\\"chdir to cwd (\\\\\\\"/home/jenkins/workspace/copy-of-sw\\\\\\\") set in config.json failed: no such file or directory\\\"\\n\""}

The dockerfile contents can be viewed on https://hub.docker.com/r/jhipster/jhipster/~/dockerfile/

Does anyone know how to resolve this?

-- Magick
centos
docker
jhipster
kubernetes
openshift-origin

1 Answer

2/3/2017

For a Jenkins build, you want to use the CI image jhipster/jhipster-ci-stack https://hub.docker.com/r/jhipster/jhipster-ci-stack/

That Docker image jhipster/jhipster is used for developing with the generator, it will not work correctly in a Jenkins pipeline unless you are changing the generator and want to test that. How to use that image can be found in the "Docker installation (for advanced users only)" of https://jhipster.github.io/installation/

-- Jon Ruddell
Source: StackOverflow