dcoker-compose - docker-compose加了 -d 参数后启动容器还是处于exit 0 状态
黄舟
黄舟 2017-04-24 09:11:28
0
3
788

我的yaml文件如下:

version: '2'
services:
  foo:
    image: ubuntu:latest
    container_name: demo_ubuntu

运行命令:

sudo docker-compose up -d

启动的容器状态为exit 0,不是正常的up状态

求解答~

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
小葫芦

Just add the startup command, such as /bin/bash

洪涛

I found that using the redis mirror can keep the up state, but ubuntu cannot. I wonder who can explain this situation

大家讲道理

You can refer to https://github.com/sequenceiq...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template