then when I run docker rm it won't let me because the docker container could still be in use.
The steps I would suggest are in following order,
1. Try to remove
docker rm
2. rm doesn't work, use stop
docker stop
3. stop doesn't work? try kill
docker kill
4. stop worked but still container is there? try prune to remove all the stopped container forcefully
docker container prune -f