mirror of https://github.com/garabik/grc.git
Add docker support: info, ps, images, docker-machine
This commit is contained in:
parent
829e900211
commit
5b42261cb6
|
@ -0,0 +1,15 @@
|
||||||
|
# IMAGE
|
||||||
|
regexp=^(?!NAME)(\S+)\s+(\S+)\s+(\S+)
|
||||||
|
colours=default,bold yellow,bold black,cyan
|
||||||
|
======
|
||||||
|
# Running
|
||||||
|
regexp=\sRunning\s
|
||||||
|
colours=bold green
|
||||||
|
======
|
||||||
|
# Exited
|
||||||
|
regexp=\sStopped\s
|
||||||
|
colours=bold red
|
||||||
|
# PORTS
|
||||||
|
======
|
||||||
|
regexp=((?:\d{1,3}\.){3}\d{1,3}):(\d+)
|
||||||
|
colours=default,blue,bold blue
|
|
@ -0,0 +1,19 @@
|
||||||
|
# REPO, TAG
|
||||||
|
regexp=^([a-z]+\/?[^\s]+)\s+([^\s]+)\s+(\w+)
|
||||||
|
colours=default,bold white,cyan,bold black
|
||||||
|
=====
|
||||||
|
# images without name
|
||||||
|
regexp=^<none>.*$
|
||||||
|
colours=bold red
|
||||||
|
=====
|
||||||
|
# Size 'K'
|
||||||
|
regexp=\s\d*[.,]?\d\sKB?
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# Size 'M'
|
||||||
|
regexp=\s\d*[.,]?\d\sMB?
|
||||||
|
colours=yellow
|
||||||
|
======
|
||||||
|
# Size 'G'
|
||||||
|
regexp=\s\d*[.,]?\d\sGB?
|
||||||
|
colours=red
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Values
|
||||||
|
regexp=^([^:]+):\s(.*)$
|
||||||
|
colours=default,cyan
|
||||||
|
======
|
||||||
|
# Names & IP
|
||||||
|
regexp=^\s([^:]+):\s((?:\d{1,3}\.){3}\d{1,3}):(\d+)
|
||||||
|
colours=default,bold yellow,blue,bold blue
|
|
@ -0,0 +1,19 @@
|
||||||
|
# IMAGE
|
||||||
|
regexp=^(?!CONTAINER)(\w+)\s+([^\s]+)\s+(".*")\s+(.*(?=(?:Up|Exited)))
|
||||||
|
colours=default,bold black,bold white,bold black,cyan
|
||||||
|
======
|
||||||
|
# Up
|
||||||
|
regexp=\sUp\s(\d+|\w+)\s\w+(?:\s\w+)?
|
||||||
|
colours=bold green
|
||||||
|
======
|
||||||
|
# Exited
|
||||||
|
regexp=\sExited\s.(\d+).\s.+ago
|
||||||
|
colours=bold red,red
|
||||||
|
# PORTS
|
||||||
|
======
|
||||||
|
regexp=(?:\d{1,3}\.){3}\d{1,3}[^\s]*
|
||||||
|
colours=bold blue
|
||||||
|
======
|
||||||
|
# NAMES
|
||||||
|
regexp=(?:([a-z\-_0-9]+)/)*([a-z\-_0-9]+)$
|
||||||
|
colours=default,yellow,bold yellow
|
17
grc.conf
17
grc.conf
|
@ -81,3 +81,20 @@ conf.mount
|
||||||
# df
|
# df
|
||||||
(^|[/\w\.]+/)df\s?
|
(^|[/\w\.]+/)df\s?
|
||||||
conf.df
|
conf.df
|
||||||
|
|
||||||
|
# docker ps
|
||||||
|
(^|[/\w\.]+/)docker ps\s?
|
||||||
|
conf.dockerps
|
||||||
|
|
||||||
|
# docker images
|
||||||
|
(^|[/\w\.]+/)docker images\s?
|
||||||
|
conf.dockerimages
|
||||||
|
|
||||||
|
# docker-machine
|
||||||
|
(^|[/\w\.]+/)docker-machine ls\s?
|
||||||
|
conf.docker-machinels
|
||||||
|
|
||||||
|
# docker info
|
||||||
|
(^|[/\w\.]+/)docker info\s?
|
||||||
|
conf.dockerinfo
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue