While starting a Docker container, you may sometimes receive “the container name is already in use by container” error.
The complete error looks like as follows:
ERROR: for <containerName> Cannot create container for service <serviceName>: Conflict. The container name “<containerName>” is already in use by container “<containerID>”. You have to remove (or rename) that container to be able to reuse that name.
This short note shows how to fix “the container name is already in use by container” error. (more…)