Docker Community Forums

Share and learn in the Docker community.

Kill paused container cause InternalServerErrorException in docker-java is it proper behavior?

docker

(Chernov) #1

Hi,
I started to add some additional integration tests for docker-java lib. And I faced the problem, that for some operations docker returns InternalServerErrorException, e.g. kill paused container, kill stopped container. Is it fine or docker | docker-java should return another exception???


(Chernov) #2

This is the expected behavior as docker-java has no knowledge of the container state. It just transports the HTTP error code 500 from the docker remote API to the user.