Created for troubleshooting, use if you suspect dockcheck screwed up with errors to easily review your running configs.
Restart the faulty contianer manually from the compose-file!
Fixed a breaking error - pulling new images did not use the actual image:tag, but only defaulted to latest.
Hence bumping the version to alert new users to pull the latest.
Fixes:
- Checks if curl/wget exist to not get an empty `regctl` binary.
- Extra check if `regctl` binary is functional before continuing.
- changed shebang to `#!/usr/bin/env bash` for portability.
- General cleaning. (y/n checks and space saving)
New:
- Rework of the `choosecontainers` function
- `[aA]` to update ALL (was `0` before and part of the list/array)
- numbers starting from 1 (instead of 0)
- will prompt for new choice if picking numbers/letters out of bound.
- `docker prune` option after completed updates.
- additionally a`-p` flag for automatic update+prune, eg `./dockcheck.sh -yp`
- Added [GNU GPL v3.0](https://www.gnu.org/licenses/gpl-3.0-standalone.html) license.
printf formatting fixes
read formatting fixes
find/replace instead of sed
directly check error on regctl instead of indirectly
safer array-checks (not expanding without index)
Did some work to allow for selecting containers which are not docker compose -containers.
These containers will get skipped by default but the user have the option -r to allow updates of docker run images. This is not recommended - as you'd still need to stop and recreate the container manually to use the new image.
Wont break if one of the chosen containers are created with docker run.
Added checks if a container is started with docker run, then skipping (default) or updating the image for manual docker run recreation (flag -r required).
Merge fixes compatibility with value from `com.docker.compose.project.config_files` not giving full path in some cases, probably due to old `docker-compose` binary.
Thank you **nnmalex** for finding and contributing!