I am new to Docker and Cassandra and tried their quick start guide to setup Cassandra with Docker locally however meeting following issues.
I can successfully run the command to start Cassandra which is:
docker run --name cassandra cassandra
However when I tried with the command of network:
docker run --rm -d --name cassandra --hostname cassandra --network cassandra cassandra
it got failed with following errors:
docker: Error response from daemon: Conflict. The container name "/cassandra" is already in use by container "c356c1b25bd096e4c6e0f2afd40a70f375ee34fff332b1b0ba16e14d1f6ab0fc". You have to remove (or rename) that container to be able to reuse that name.
Not quite sure what is the reason here? BTW, I am using the latest version of Docker for Mac as 4.1.1