Docker Community Forums

Share and learn in the Docker community.

Container stop automatically within a second after the start?


(Pankajdaffodil) #1

I am struggling from last 2 days to run container.
I am using windows 8.1 machine.
I want to implement codeclimate in my code, so i am trying to create a container with codeclimate/codeclimate image.
command: docker run codecliamte/codecliamte but its creating a new container every time and stop within a second automatically.
so how can i run my container properly without stop automatically.

Please Help


(Jeff Anderson) #2

Hello,

When I run docker run codeclimate/codeclimate, I get the following output:

$ docker run codeclimate/codeclimate
Usage: codeclimate COMMAND …

Available commands:
analyze [-f format]
console
engines:disable engine_name
engines:enable engine_name
engines:install
engines:list
engines:remove engine_name
help
init
validate-config
version

It looks like this image needs some extra arguments passed in to it. A container shows as stopped once the process exits. This process prints the usage information and then exits. It looks like this particular image has some usage information in its readme: https://hub.docker.com/r/codeclimate/codeclimate/#usage

/Jeff