原创

docker-compose时出现php72 Interactive shell

使用php7.2镜像编排的时候起不来,编排如下

version: '3'
services:
    php:
      image: "php:7.2"
      ports:
        - "9000:9000"
      restart: always

1.直接启动看状态一直在重启状态
2.a68a8080ecda php:7.2 "docker-php-entrypoi…" 25 hours ago Up Less than a second 0.0.0.0:9000->9000/tcp blog_php_1
3.看日志Interactive shell

编排改为即可

version: '3'
services:
    php:
      image: "php:7.2"
      ports:
        - "9000:9000"
      restart: always 
      stdin_open: true
      tty: true
正文到此结束
本文目录