- 查看docker网络
$ docker network ls
NETWORK ID NAME DRIVER SCOPE
7fca4eb8c647 bridge bridge local
9f904ee27bf5 none null local
cf03ee007fb4 host host local
78b03ee04fc4 multi-host overlay swarm
- 查看容器所有容器
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4c01db0b339c ubuntu:12.04 bash 17 seconds ago Up 16 seconds 3300-3310/tcp webapp
d7886598dbe2 crosbymichael/redis:latest /redis-server --dir 33 minutes ago Up 33 minutes 6379/tcp redis,webapp/db
如果要查看command的所有内容 --no-trunc
[root@2u27 elastalert]# docker ps -a --no-trunc
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
40c95e59e665331b26c8946cf8a1f2db85f4351fe4bddf47fb38acf21f63c003 jertel/elastalert2 "/opt/elastalert/run.sh --verbose" 38 seconds ago Created elastalert
87be3b35e3051b854f5c7ff89d506828c71ff9ebeed7d6c919d514abd517007d 373715f93363 "/opt/elastalert/run.sh /bin/bash" 22 minutes ago Exited (2) 17 minutes ago trusting_chandrasekhar
更多命令可以参考:https://docs.docker.com/engine/reference/commandline/network_ls/
持续更新
标签:ago,--,local,elastalert,常用命令,Docker,minutes,docker From: https://www.cnblogs.com/yuedu/p/16853257.html