docker安装redis无法启动: The container name “/ly-redis“ is already in use by container
2020-08-13 15:31
826 查看
报错信息:response from daemon: Conflict. The container name "/ly-redis" is already in use by container 7606c1cc0d9cc3124e2a29e944c533229b93168e69b0b233d72d8eea73d32276. You have to remove (or rename) that container to be able to reuse that name..
解决方案:
下图包含所有的步骤:
1. 根据错误信息,找到原因是容器已经在使用
2. 找到容器的名字,需错误信息中提示了 ly-redis 这就是容器的名称
3. 使用docker命令删除容器:docker rm ly-redis (名字不能抄)
4. 再次执行您要想执行的命令
5. 重新启动 docker restart ly-redis
6. 检验容器是否启动成功:docker exec -it ly-redis redis-cli
7. 输入 ping 即可,如果得到PONG,说明redis在dockers中安装成功!!!
同样的错误解决方案是一样的!!!
相关文章推荐
- Error response from daemon: Conflict. The container name "/mysql" is already in use by container
- Error response from daemon: Conflict. The container name "/mysql" is already in use by container
- 创建新Docker容器时出现“The container name "/xxx" is already in use by container xxxxxxxxxxx...”问题的解决办法
- docker : Error response from daemon: Conflict. The container name "***" is already in use
- 解决Tomact启动时问题,Port 8080 required by Tomcat v8.0 Server at localhost is already in use. The server ma
- oracle 11g RAC安装节点二执行结果错误CRS-5005: IP Address: 192.168.1.24 is already in use in the network
- 分区无法格式化?/dev/sda2 is apparently in use by the system; will not make a filesystem here!
- 报表工具FineReport报错:java.sql.SQLException: The database is already in use by another process: lockFile
- 解决Eclipse中启动Tomcat时出现 Port 8080 required by Tomcat v8.5 Server at localhost is already in use...
- Tomcat启动报错Port 80 required by Tomcat v7.0 Server at localhost is already in use. The server may alre
- weblogic.application.ModuleException: Context path '' is already in use by the module
- Port 8080 required by Tomcat v6.0 Server at localhost is already in use. The server may already be r
- Cannot declare class app\home\controller\Cases because the name is already in use
- org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The database is already in use by another p
- October( the name is already in use)
- eclipse中tomcat启动报错Port 8080 required by agent is already in use
- TFS: The working folder E:\Local is already in use by another workspace on this computer.
- Centos下无法格式化硬盘/dev/sd* is apparently in use by the system; will not make a filesystem here!
- Firefox无法启动,提示Profile is yet in use by another Firefox
- One of the disks in this virtual machine is already in use by a virtual machine or by a snapshot"