diff --git a/README.md b/README.md index 4acc102..957f19e 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ ___ ## :bell: Changelog +- **v0.3.4**: Reworked selfupdate (auto git/curl/wget), general syntax cleanup, added -v for version. - **v0.3.8**: Fixed `--env-file` logic to work with multiple env-files. - **v0.3.7**: Added support for [labels](#bookmark-labels), added the `-f` option (force restart stack). - **v0.3.6**: Added pushbullet template. @@ -57,6 +58,7 @@ Options:" -p Auto-Prune dangling images after update. -r Allow updating images for docker run, wont update the container. -s Include stopped containers in the check. (Logic: docker ps -a). +-v Prints current version. ``` @@ -126,6 +128,16 @@ chmod 755 regctl ``` Test it with `./regctl --help` and then either add the file to the same path as *dockcheck.sh* or in your path (eg. `~/.local/bin/regctl`). +## :open_hands: Function to auth with docker hub before running +### Example +Change names, paths, and remove cat+password flag if you rather get prompted: +```sh +function dchk { + cat ~/pwd.txt | docker login --username YourUser --password-stdin + ~/dockcheck.sh "$@" +} +``` + ## :hammer: Known issues - No detailed error feedback (just skip + list what's skipped). - Not respecting `--profile` options when re-creating the container. diff --git a/dockcheck.sh b/dockcheck.sh index c2d2688..723df39 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERSION="v0.3.8" -### ChangeNotes: Fixed --env-file logic to work with multiple env-files. +VERSION="v0.4.0" +### ChangeNotes: Reworked selfupdate (auto git/curl/wget), cleanups, -v for version. Github="https://github.com/mag37/dockcheck" RawUrl="https://raw.githubusercontent.com/mag37/dockcheck/main/dockcheck.sh"