问题描述:
启动docker实例时,报相同名字的容器实例已存在问题。docker: Error response from daemon: Conflict. The container name “/ollama” is already in use by container “2bb5e8cec639655ba3b347dac3b16324d0f08c5eaf06e29148f6578f762e8a75”. You have to remove (or rename) that container to be able to reuse that name
解决步骤
1.列出所有运行的docker容器实例,找到对应重复实例对应的CONTAINER ID或者NAMES
docker ps -a
2.删除容器
删除指定的容器
docker rm ID/NAME
删除所有闲置容器
docker container prune
3.重新启动docker
systemctl restart docker