search

Home  >  Q&A  >  body text

docker中能否查看到容器是从哪个镜像启动的?

如题,一般来说一台docker机器上会运行许多个容器,那么我如何知道container是从哪个image启动来的呢?

PHPzPHPz2778 days ago731

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-04-21 11:00:04

    As follows, IMAGE is it

    # docker ps -a
    CONTAINER ID        IMAGE                  COMMAND             CREATED             STATUS                   PORTS                     NAMES
    a4b3bba4a28e        ubuntu:latest   "/bin/bash"         5 weeks ago         Up 5 weeks               0.0.0.0:14000->9000/tcp   test 
    

    reply
    0
  • Cancelreply