mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-14 23:38:15 +01:00
Update README.md
Added new example with flags and optional filter.
This commit is contained in:
parent
66b53ec3af
commit
6195b712ac
1 changed files with 27 additions and 4 deletions
31
README.md
31
README.md
|
|
@ -5,13 +5,23 @@ ___
|
|||
|
||||
## Dependencies:
|
||||
Running docker (duh) and compose, either standalone or plugin.
|
||||
`regctl` by [regclient](https://github.com/regclient/regclient)
|
||||
`regctl` by [regclient](https://github.com/regclient/regclient)
|
||||
The script will ask to download `regctl` if it's not in PATH or current directory.
|
||||
___
|
||||
## `dockcheck.sh`
|
||||
A script to check all currently running containers if they've got updates without pulling images, list them and give the option to update.
|
||||
Example:
|
||||
```bash
|
||||
$ ./dockcheck.sh
|
||||
$ dockcheck.sh -h
|
||||
Syntax: dockcheck.sh [OPTION] [optional string to filter names]
|
||||
|
||||
Options:
|
||||
-h Print this Help.
|
||||
-a Automatic updates, without interaction.
|
||||
-n No updates, only checking availability.
|
||||
```
|
||||
A script to check all currently running containers if they've got updates without pulling images, list them and give the option to update.
|
||||
Basic example:
|
||||
```bash
|
||||
$ dockcheck.sh
|
||||
. . .
|
||||
Containers with updates available:
|
||||
whoogle-search
|
||||
|
|
@ -23,6 +33,19 @@ homer
|
|||
Do you want to update? y/[n]
|
||||
y
|
||||
```
|
||||
|
||||
And with `-n No updates` and `gl` for *gl* filtering:
|
||||
```bash
|
||||
$ dockcheck.sh -n gl
|
||||
. . .
|
||||
Containers with updates available:
|
||||
whoogle-search
|
||||
|
||||
Containers on latest version:
|
||||
glances
|
||||
|
||||
No updates installed, exiting
|
||||
```
|
||||
Then it proceedes to run `pull` and `up -d` on every container with updates.
|
||||
|
||||
Example-video:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue