Docker sometimes exists but still keeps running.
Started with :
docker run -v $PWD:/host --rm -it Ubuntu_2018
After "exit" : Docker container ls; docker container ls -al
This still shows container running How to make sure that docker container is gracefully ended?
Using the option "--rm"
and exiting the docker with "exit" should do the needful. But it still sometimes remains.
After exit, "docker container ls; docker container ls -al" should not show the docker at all