I have always annoyed saying The container name "awesome-name" is already in use...
.
Following command removes all exited containers.
docker ps -a --filter "status=exited" --format "{{.ID}}" | xargs docker rm -f
Or you can add options when running container.
docker-compose run --rm -d awesome-service
--rm
option let container removed when it exited.
It helps me remove trivial annoyance.