简体   繁体   English

在 docker 上运行时无法启动 Redis 服务

[英]Cannot start Redis service when I running on docker

When I run docker-compose up I get the following error below.当我运行docker-compose up ,出现以下错误。 How can I make the service run again?如何让服务再次运行?

在此处输入图片说明



When I run docker ps below is the output:当我运行docker ps下面是输出:

在此处输入图片说明

It happened because you tried to bring up an environment where you had already bound the port elsewhere.发生这种情况是因为您尝试创建一个环境,在该环境中您已经将端口绑定到其他地方。

To fix...修理...

Either任何一个

docker-compose down which will delete the containers + network. docker-compose down这将删除容器 + 网络。

OR或者

docker ps -a find the stuck container and then remove it with docker rm -f CONTAINER_XX docker ps -a找到卡住的容器,然后使用docker rm -f CONTAINER_XX将其删除

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM