Redirecting stderr to /dev/null for `docker inspect` commands
Use the container ID when running the container, and check the state of a container before attempting to stop it