当前位置:网站首页>Reasons for failure to start redis container with docker

Reasons for failure to start redis container with docker

2022-06-09 07:19:00 woshihedayu

Use today docker start-up redis Containers , The following command was executed

docker run -p 6379:6379 --name redis -v /root/guli/redis/redis.conf:/etc/redis/redis.conf -d redis redis-server /etc/redis/redis.conf

Discovery I startup , Just stop .
later , After checking on the Internet, I found , Because redis.conf In the document daemonize by yes, intend redis Services running in the background , And docker Medium -d Parameter conflicts .
Just put daemonize The parameter value of is changed to no That's all right. , Execute the above command again , Container started successfully .

原网站

版权声明
本文为[woshihedayu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203021422313477.html