列出所有Docker 容器
docker ps -a
command to list all containers, including the stopped ones: If you want to see all containers, add a keyword with the ‘docker ps’ command, i.e., ‘-a’. This command will show you all containers, whether they are running, restarting, paused, or stopped.
停止docker容器
docker stop command. The syntax is simple:
$ docker stop [OPTIONS] CONTAINER [CONTAINER...]
查看记录
docker logs [OPTIONS] CONTAINER [CONTAINER…]