docker-compose ps

Usage: docker-compose ps [options] [SERVICE...]

Options:
    -q, --quiet          Only display IDs
    --services           Display services
    --filter KEY=VAL     Filter services by a property
    -a, --all            Show all stopped containers (including those created by the run command)
利用方法: docker-compose ps [オプション] [サービス名...]

オプション:
    -q, --quiet          ID のみを表示します。
    --services           サービスを表示します。
    --filter KEY=VAL     プロパティによりサービスのフィルター出力を行います。
    -a, --all            停止中のコンテナーもすべて表示します。(run コマンドにより生成されたものすべて)

コンテナーを一覧表示します。

$ docker-compose ps
         Name                        Command                 State             Ports
---------------------------------------------------------------------------------------------
mywordpress_db_1          docker-entrypoint.sh mysqld      Up (healthy)  3306/tcp
mywordpress_wordpress_1   /entrypoint.sh apache2-for ...   Restarting    0.0.0.0:8000->80/tcp
fig, composition, compose, docker, orchestration, cli, ps