mirror of https://github.com/garabik/grc.git
Merge pull request #18 from iax7/master
Add docker support: info, ps, images, docker-machine commands
This commit is contained in:
commit
7a48f0d91e
|
@ -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
|
||||
(^|[/\w\.]+/)df\s?
|
||||
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