docker php 退出,docker-compose up 退出问题

老师您好 我用的虚拟机 centos 7 按照您的docker-compose。yml 文件构建容器

docker-compose up

Creating network “wordpress_my-bridge” with driver "bridge"

Creating volume “wordpress_mysql-data” with default driver

Pulling mysql (mysql:5.7)…

5.7: Pulling from library/mysql

f17d81b4b692: Pull complete

c691115e6ae9: Pull complete

41544cb19235: Pull complete

。。。。。。

。。。。。。

wordpress_1 | AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 172.18.0.3. Set the ‘ServerName’ directive globally to suppress this message

wordpress_1 | AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 172.18.0.3. Set the ‘ServerName’ directive globally to suppress this message

wordpress_1 | [Wed Dec 05 02:29:37.659567 2018] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.2.12 configured – resuming normal operations

wordpress_1 | [Wed Dec 05 02:29:37.659661 2018] [core:notice] [pid 1] AH00094: Command line: ‘apache2 -D FOREGROUND’

^CGracefully stopping… (press Ctrl+C again to force)

Stopping wordpress_wordpress_1 …

Stopping wordpress_mysql_1 …

Stopping wordpress_wordpress_1 … done

Stopping wordpress_mysql_1 … done

我看您视频说按ctr +c 就可以退出 我退出了 用docker-compose ps 查看 这两个容器也退出了。。。这是为什么。

docker-compose ps

Name Command State Ports

wordpress_mysql_1 docker-entrypoint.sh mysqld Exit 0

wordpress_wordpress_1 docker-entrypoint.sh apach … Exit 0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值