2017-11-24 00:44:36 +01:00
|
|
|
# HEADERS
|
|
|
|
regexp=(?:\s|^)(CONTAINER ID|IMAGE|COMMAND|CREATED|STATUS|PORTS|NAMES)(?:\s|$)
|
2016-11-20 23:13:28 +01:00
|
|
|
colours=default,underline
|
2015-11-13 07:14:27 +01:00
|
|
|
======
|
2017-11-24 00:44:36 +01:00
|
|
|
# IMAGE NAME (as docker image)
|
|
|
|
regexp=\s{2,}(?:([a-z\-_0-9]+)\/)*([a-z\-_0-9]+)(:\S+)?\s{2,}\"
|
|
|
|
colours=unchanged,yellow,bright_white,cyan
|
|
|
|
======
|
|
|
|
# IMAGE
|
|
|
|
regexp=^(?!CONTAINER)(\w+)\s+([^\s]+)\s+(".*")\s+(.*(?=(?:Up|Exited|Created|Restarting)))
|
|
|
|
colours=unchanged,bright_black,unchanged,bright_black,cyan
|
|
|
|
======
|
|
|
|
# Statuses - Created
|
|
|
|
regexp=\sCreated\s
|
|
|
|
colours=blue
|
2016-11-20 23:13:28 +01:00
|
|
|
======
|
|
|
|
# Statuses
|
|
|
|
# https://github.com/docker/docker/blob/e5a3f86e447dd659da3c2e759f3c088a0bfcfe3d/container/state.go#L40
|
2015-11-13 07:14:27 +01:00
|
|
|
# Up
|
2020-06-09 23:48:11 +02:00
|
|
|
regexp=(?:\s{2}|^)(?:Up|Restarting)(?:(?:\s[\w,\d]+)+)?
|
2015-11-13 07:14:27 +01:00
|
|
|
colours=bold green
|
|
|
|
======
|
2020-06-09 23:48:11 +02:00
|
|
|
# Health - healthy
|
|
|
|
regexp=\s\(healthy\)
|
|
|
|
colours=bold green
|
|
|
|
======
|
|
|
|
# Health - starting
|
|
|
|
regexp=\s\(health: starting\)
|
|
|
|
colours=bold yellow
|
|
|
|
======
|
|
|
|
# Health - unhealthy
|
|
|
|
regexp=\s\(unhealthy\)
|
|
|
|
colours=bold red
|
|
|
|
======
|
2017-11-24 00:44:36 +01:00
|
|
|
# Statuses - Exited
|
|
|
|
regexp=Exited\s.(\d+).+?(?=\s{2,})
|
|
|
|
colours=bold red,red
|
|
|
|
======
|
|
|
|
# Statuses - Restarting
|
|
|
|
regexp=Restarting\s.(\d+).+?(?=\s{2,})
|
|
|
|
colours=bold blue
|
|
|
|
======
|
2016-11-20 23:13:28 +01:00
|
|
|
# Ip Addresses / Ports
|
2017-11-24 00:44:36 +01:00
|
|
|
regexp=(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(\:)?(\d{1,5}))?(?:->)?(\d{1,5}(\/)\w+)
|
|
|
|
colours=default,blue,default,bright_green,bright_blue,default
|
|
|
|
======
|
|
|
|
# NAMES
|
|
|
|
regexp=(?:([a-z\-_0-9]+)\/)*([a-z\-_0-9]+)$
|
|
|
|
colours=default,yellow,on_blue white
|