Easy fix for an error "ERROR: for [CONTAINER_NAME] Cannot start service mailhog: container "[CONTAINER_ID]": already exists.". This is the quick fix, the to problem. To find out what went wrong with the container, you can check docker log.
Source code viewer
docker stop $(docker ps -a -q) docker rm $(docker ps -a -q)Programming Language: Bash