重启服务器后,使用docker-compose start启动时,报错

错误如下:

[root@iZ2vc5xk901ftf2vfscwc1Z docker_lnmp]# docker-compose start
Starting redis    ... error
Starting mysql    ... done
Starting php      ... error
Starting nginx    ... error
Starting rabbitmq ... done
Starting composer ... done

ERROR: for redis  Cannot start service redis: driver failed programming external connectivity on endpoint dockerlnmp_redis_1 (bd009bcf8d350dda45639494e58a3076a433898e16e1bcc0076eaf8aef2b0b7c): Bind for 0.0.0.0:6379 failed: port is already allocated

可能是服务器重启过程中,docker 程序运行异常,我们可以通过重启 docker 服务解决这个问题

具体命令如下:

service docker restart

重启后,再次运行 docker-compose 命令,容器服务正常启动

重启服务器后,使用docker-compose start启动时,报错_第1张图片

 

你可能感兴趣的:(服务器,Linux,#,docker,docker,redis,nginx)