Subject: [Docker Forums] [General Discussions] Docker stop conatiners

We are trying to clean the docker containers and images after stopping the running containers using prune command.
Observation : sometimes the containers are removed and sometimes they go into dead state (they can be removed by restart of docker daemon). But want to know the reason why does the stop with prune commands, takes docker containers into dead state
we are using docker : Docker version 17.03.3-ce, build e19b718