Run docker ps -a
to see all containers, even stopped ones. You need to remove an old container before you can run a new one with the same name. I think the error message is pretty clear.
That’s why docker run
without --name
attribute will assign random names when starting a new container, so no conflict with the name.