Starting and Stopping docker containers

Quick Intro

After a lot of research and experimenting with the docker stop and docker start commands, I thought it useful to make some notes here

The docker CLI has three commands of interest to me here - start, stop and kill.

docker stop

Pauses the container, maintains it in the docker ps -a table and holds it's current state.  You should keep hold of the container ID.

docker start

Resumes a container from the point when is it was imaged using docker stop.  Use the container ID that you got from docker ps -a when you stopped the container.

docker kill

Stops the container, any changes made in the container since it was first started are last, the container cannot be resumed using docker start.