docker: Error response from daemon: Conflict. The container name "/mysql" is already in use by container "5e6c2cf4a8a1b7a0e4e34f4d3cb9dbf6562b2efb9442569b6bc982fbc0ddae72". You have to remove (or rename) that container to be able to reuse that name. See 'docker run --help'.
时间: 2024-04-10 10:34:09 浏览: 197
To resolve the conflict, you need to remove or rename the existing container with the name "/mysql". You can use the following steps to do that:
1. List all running containers using the command:
```
docker ps
```
2. Find the container with the conflicting name ("/mysql") in the output. Note the container ID.
3. Stop the container using the command:
```
docker stop <container_id>
```
4. Remove the container using the command:
```
docker rm <container_id>
```
Once you have removed the conflicting container, you will be able to reuse the "/mysql" container name.
阅读全文