mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-19 01: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
29
README.md
29
README.md
|
|
@ -6,12 +6,22 @@ ___
|
||||||
## Dependencies:
|
## Dependencies:
|
||||||
Running docker (duh) and compose, either standalone or plugin.
|
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`
|
## `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
|
```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:
|
Containers with updates available:
|
||||||
whoogle-search
|
whoogle-search
|
||||||
|
|
@ -23,6 +33,19 @@ homer
|
||||||
Do you want to update? y/[n]
|
Do you want to update? y/[n]
|
||||||
y
|
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.
|
Then it proceedes to run `pull` and `up -d` on every container with updates.
|
||||||
|
|
||||||
Example-video:
|
Example-video:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue