mirror of
https://github.com/mag37/dockcheck.git
synced 2026-04-17 18:07:46 +00:00
Compare commits
31 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e864edc40e | ||
|
|
aac065022c | ||
|
|
3e60468d47 | ||
|
|
09c1b769ca | ||
|
|
5392c48a57 | ||
|
|
cc72411de4 | ||
|
|
026d5296f8 | ||
|
|
f6e2d50949 | ||
|
|
432edbfa75 | ||
|
|
f233cf3b41 | ||
|
|
7630a95442 | ||
|
|
c7304093bd | ||
|
|
d877a86292 | ||
|
|
191d27097d | ||
|
|
4ddb54770e | ||
|
|
c50312dc83 | ||
|
|
c47c703ce9 | ||
|
|
372e79a12c | ||
|
|
5c2cf75b21 | ||
|
|
e754450300 | ||
|
|
6ff15f6d97 | ||
|
|
cb65d78075 | ||
|
|
955796c47a | ||
|
|
263966dc4a | ||
|
|
e877cd826d | ||
|
|
b78485ed8b | ||
|
|
fa8edd0443 | ||
|
|
dd6a56da1b | ||
|
|
7f30126678 | ||
|
|
c61dd58858 | ||
|
|
61825370dd |
47
README.md
47
README.md
@@ -1,5 +1,18 @@
|
|||||||
# dockcheck
|
# dockcheck
|
||||||
### A script checking updates for docker images **without pulling** - then selectively auto-update some/all containers.
|
### A script checking updates for docker images **without pulling** - then selectively auto-update some/all containers.
|
||||||
|
|
||||||
|
### :warning: URGENT!
|
||||||
|
The 2.0 change had a breaking error - compose-recreation might have included previous containers compose-file.
|
||||||
|
If you've had odd errors, you can use the [errorCheck.sh](https://github.com/mag37/dockcheck/blob/main/errorCheck.sh) script to list current running container configs in a readable way. Look especially for **Compose files** listed in wrong places.
|
||||||
|
Recreate the suspicious container(s) manually with `docker compose down && docker compose up -d`.
|
||||||
|
|
||||||
|
### :pushpin: Recent changes:
|
||||||
|
- **v0.2.2**: Fixed breaking errors with multi-compose, odd breakage and working dir error.
|
||||||
|
- **v0.2.1**: Added option to exclude a list of containers.
|
||||||
|
- **v0.2.1**: Added multi-compose support (eg. override).
|
||||||
|
- **v0.2.0**: Fixed error with container:tag definition.
|
||||||
|
- **v0.1.9:** Fixed custom env-support.
|
||||||
|
- **v0.1.8:** Added option to prune dangling images.
|
||||||
___
|
___
|
||||||
|
|
||||||
## Dependencies:
|
## Dependencies:
|
||||||
@@ -15,13 +28,14 @@ ___
|
|||||||
```
|
```
|
||||||
$ ./dockcheck.sh -h
|
$ ./dockcheck.sh -h
|
||||||
Syntax: dockcheck.sh [OPTION] [part of name to filter]
|
Syntax: dockcheck.sh [OPTION] [part of name to filter]
|
||||||
Example: dockcheck.sh -a ng
|
Example: dockcheck.sh -a -e nextcloud,heimdall
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-h Print this Help.
|
-h Print this Help.
|
||||||
-a|y Automatic updates, without interaction.
|
-a|y Automatic updates, without interaction.
|
||||||
-n No updates, only checking availability.
|
-n No updates, only checking availability.
|
||||||
-p Auto-Prune dangling images after update.
|
-p Auto-Prune dangling images after update.
|
||||||
|
-e Exclude containers, separated by comma.
|
||||||
-r Allow updating images for docker run, wont update the container.
|
-r Allow updating images for docker run, wont update the container.
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -51,36 +65,13 @@ After the updates are complete, you'll get prompted if you'd like to prune dangl
|
|||||||
`docker run` dont support using new images just by restarting a container.
|
`docker run` dont support using new images just by restarting a container.
|
||||||
Containers need to be manually stopped, removed and created again to run on the new image.
|
Containers need to be manually stopped, removed and created again to run on the new image.
|
||||||
|
|
||||||
|
|
||||||
### :beetle: Squashed Bugs:
|
|
||||||
- ~~No options for running without updates or auto update.~~
|
|
||||||
- ~~No filter to check only specific containers.~~
|
|
||||||
- ~~Faulty registry checkups stopped the updates completely.~~
|
|
||||||
- ~~No clear checks to skip containers producing errors.~~
|
|
||||||
- ~~Multi-digest images didn't correctly check with registry, giving false positives on updates.~~
|
|
||||||
- ~~Not working with filenames other than `docker-compose.yml`~~
|
|
||||||
- ~~Lists are not alphabetically sorted (due to stacks and other parameters)~~
|
|
||||||
- ~~Old `docker-compose` binary-check sometimes returned false error~~
|
|
||||||
- ~~Stacks gets updated as whole, even if only one service is chosen.~~
|
|
||||||
- ~~Path broken occationally (from inspect) - probably due to old docker-compose binary.~~
|
|
||||||
- ~~Script breaks if one of the chosen containers are a `docker run` container.~~
|
|
||||||
- ~~Using relative paths for volumes eg. `${PWD}/data:data` will create the volumes where you stand.~~
|
|
||||||
- ~~Having no curl/wget leads to corrupt `regctl` without alerting.~~
|
|
||||||
|
|
||||||
### :hammer: Known issues
|
### :hammer: Known issues
|
||||||
- ~~No granular choice of what to update (except initial name filter).~~
|
|
||||||
- No detailed error feedback (just skip + list what's skipped) .
|
- No detailed error feedback (just skip + list what's skipped) .
|
||||||
|
- Not respecting `--profile` options when re-creating the container.
|
||||||
|
|
||||||
|
## `dc_brief.sh`
|
||||||
|
Just a brief, slimmed down version of the script to only print what containers got updates, no updates or errors.
|
||||||
|
|
||||||
## `dupc_function.sh`
|
|
||||||
Function to quickly check for updates on a single contianer or list of containers by name. **Without the need of pulling**.
|
|
||||||
Preferably placed in `.bashrc` or similar.
|
|
||||||
Example:
|
|
||||||
```
|
|
||||||
$ dupc ng
|
|
||||||
Updates available for local_nginx.
|
|
||||||
nginx_reverse is already latest.
|
|
||||||
Updates available for paperless-ng.
|
|
||||||
```
|
|
||||||
# License
|
# License
|
||||||
dockcheck is created and released under the [GNU GPL v3.0](https://www.gnu.org/licenses/gpl-3.0-standalone.html) license.
|
dockcheck is created and released under the [GNU GPL v3.0](https://www.gnu.org/licenses/gpl-3.0-standalone.html) license.
|
||||||
___
|
___
|
||||||
|
|||||||
51
dc_brief.sh
Executable file
51
dc_brief.sh
Executable file
@@ -0,0 +1,51 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
### If not in PATH, set full path. Else just "regctl"
|
||||||
|
regbin="regctl"
|
||||||
|
### options to allow exclude:
|
||||||
|
while getopts "e:" options; do
|
||||||
|
case "${options}" in
|
||||||
|
e) Exclude=${OPTARG} ;;
|
||||||
|
*) exit 0 ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
shift "$((OPTIND-1))"
|
||||||
|
### Create array of excludes
|
||||||
|
IFS=',' read -r -a Excludes <<< "$Exclude" ; unset IFS
|
||||||
|
|
||||||
|
SearchName="$1"
|
||||||
|
|
||||||
|
for i in $(docker ps --filter "name=$SearchName" --format '{{.Names}}') ; do
|
||||||
|
[[ " ${Excludes[*]} " =~ ${i} ]] && continue; # Skip if the container is excluded
|
||||||
|
printf ". "
|
||||||
|
RepoUrl=$(docker inspect "$i" --format='{{.Config.Image}}')
|
||||||
|
LocalHash=$(docker image inspect "$RepoUrl" --format '{{.RepoDigests}}')
|
||||||
|
### Checking for errors while setting the variable:
|
||||||
|
if RegHash=$($regbin image digest --list "$RepoUrl" 2>/dev/null) ; then
|
||||||
|
if [[ "$LocalHash" = *"$RegHash"* ]] ; then NoUpdates+=("$i"); else GotUpdates+=("$i"); fi
|
||||||
|
else
|
||||||
|
GotErrors+=("$i")
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
### Sort arrays alphabetically
|
||||||
|
IFS=$'\n'
|
||||||
|
NoUpdates=($(sort <<<"${NoUpdates[*]}"))
|
||||||
|
GotUpdates=($(sort <<<"${GotUpdates[*]}"))
|
||||||
|
GotErrors=($(sort <<<"${GotErrors[*]}"))
|
||||||
|
unset IFS
|
||||||
|
|
||||||
|
### List what containers got updates or not
|
||||||
|
if [[ -n ${NoUpdates[*]} ]] ; then
|
||||||
|
printf "\n\033[0;32mContainers on latest version:\033[0m\n"
|
||||||
|
printf "%s\n" "${NoUpdates[@]}"
|
||||||
|
fi
|
||||||
|
if [[ -n ${GotErrors[*]} ]] ; then
|
||||||
|
printf "\n\033[0;31mContainers with errors, wont get updated:\033[0m\n"
|
||||||
|
printf "%s\n" "${GotErrors[@]}"
|
||||||
|
fi
|
||||||
|
if [[ -n ${GotUpdates[*]} ]] ; then
|
||||||
|
printf "\n\033[0;33mContainers with updates available:\033[0m\n"
|
||||||
|
printf "%s\n" "${GotUpdates[@]}"
|
||||||
|
fi
|
||||||
|
printf "\n\n"
|
||||||
42
dockcheck.sh
42
dockcheck.sh
@@ -1,30 +1,32 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
VERSION="v0.1.8"
|
VERSION="v0.2.2-URGENT"
|
||||||
Github="https://github.com/mag37/dockcheck"
|
Github="https://github.com/mag37/dockcheck"
|
||||||
|
|
||||||
### Check if there's a new release of the script:
|
### Check if there's a new release of the script:
|
||||||
LatestRelease="$(curl -s -r 0-40 https://raw.githubusercontent.com/mag37/dockcheck/main/dockcheck.sh | sed -n "/VERSION/s/VERSION=//p" | tr -d '"')"
|
LatestRelease="$(curl -s -r 0-50 https://raw.githubusercontent.com/mag37/dockcheck/main/dockcheck.sh | sed -n "/VERSION/s/VERSION=//p" | tr -d '"')"
|
||||||
[ "$VERSION" != "$LatestRelease" ] && printf "New version available! Latest: %s - Local: %s \nGrab it here: %s \n\n" "$LatestRelease" "$VERSION" "$Github"
|
[ "$VERSION" != "$LatestRelease" ] && printf "New version available! Latest: %s - Local: %s \nGrab it here: %s \n\n" "$LatestRelease" "$VERSION" "$Github"
|
||||||
|
|
||||||
### Help Function:
|
### Help Function:
|
||||||
Help() {
|
Help() {
|
||||||
echo "Syntax: dockcheck.sh [OPTION] [part of name to filter]"
|
echo "Syntax: dockcheck.sh [OPTION] [part of name to filter]"
|
||||||
echo "Example: dockcheck.sh -a ng"
|
echo "Example: dockcheck.sh -a -e nextcloud,heimdall"
|
||||||
echo
|
echo
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo "-h Print this Help."
|
echo "-h Print this Help."
|
||||||
echo "-a|y Automatic updates, without interaction."
|
echo "-a|y Automatic updates, without interaction."
|
||||||
echo "-n No updates, only checking availability."
|
echo "-n No updates, only checking availability."
|
||||||
|
echo "-e Exclude containers, separated by comma."
|
||||||
echo "-p Auto-Prune dangling images after update."
|
echo "-p Auto-Prune dangling images after update."
|
||||||
echo "-r Allow updating images for docker run, wont update the container"
|
echo "-r Allow updating images for docker run, wont update the container"
|
||||||
}
|
}
|
||||||
|
|
||||||
while getopts "aynprh" options; do
|
while getopts "aynprhe:" options; do
|
||||||
case "${options}" in
|
case "${options}" in
|
||||||
a|y) UpdYes="yes" ;;
|
a|y) UpdYes="yes" ;;
|
||||||
n) UpdYes="no" ;;
|
n) UpdYes="no" ;;
|
||||||
r) DrUp="yes" ;;
|
r) DrUp="yes" ;;
|
||||||
p) PruneQ="yes" ;;
|
p) PruneQ="yes" ;;
|
||||||
|
e) Exclude=${OPTARG} ;;
|
||||||
h|*) Help ; exit 0 ;;
|
h|*) Help ; exit 0 ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@@ -32,6 +34,8 @@ shift "$((OPTIND-1))"
|
|||||||
|
|
||||||
### Set $1 to a variable for name filtering later.
|
### Set $1 to a variable for name filtering later.
|
||||||
SearchName="$1"
|
SearchName="$1"
|
||||||
|
### Create array of excludes
|
||||||
|
IFS=',' read -r -a Excludes <<< "$Exclude" ; unset IFS
|
||||||
|
|
||||||
### Check if required binary exists in PATH or directory:
|
### Check if required binary exists in PATH or directory:
|
||||||
if [[ $(builtin type -P "regctl") ]]; then regbin="regctl" ;
|
if [[ $(builtin type -P "regctl") ]]; then regbin="regctl" ;
|
||||||
@@ -108,6 +112,7 @@ choosecontainers() {
|
|||||||
|
|
||||||
### Check the image-hash of every running container VS the registry
|
### Check the image-hash of every running container VS the registry
|
||||||
for i in $(docker ps --filter "name=$SearchName" --format '{{.Names}}') ; do
|
for i in $(docker ps --filter "name=$SearchName" --format '{{.Names}}') ; do
|
||||||
|
[[ " ${Excludes[*]} " =~ ${i} ]] && continue; # Skip if the container is excluded
|
||||||
printf ". "
|
printf ". "
|
||||||
RepoUrl=$(docker inspect "$i" --format='{{.Config.Image}}')
|
RepoUrl=$(docker inspect "$i" --format='{{.Config.Image}}')
|
||||||
LocalHash=$(docker image inspect "$RepoUrl" --format '{{.RepoDigests}}')
|
LocalHash=$(docker image inspect "$RepoUrl" --format '{{.RepoDigests}}')
|
||||||
@@ -130,36 +135,38 @@ UpdCount="${#GotUpdates[@]}"
|
|||||||
|
|
||||||
### List what containers got updates or not
|
### List what containers got updates or not
|
||||||
if [[ -n ${NoUpdates[*]} ]] ; then
|
if [[ -n ${NoUpdates[*]} ]] ; then
|
||||||
printf "\n\033[32;1mContainers on latest version:\033[0m\n"
|
printf "\n\033[0;32mContainers on latest version:\033[0m\n"
|
||||||
printf "%s\n" "${NoUpdates[@]}"
|
printf "%s\n" "${NoUpdates[@]}"
|
||||||
fi
|
fi
|
||||||
if [[ -n ${GotErrors[*]} ]] ; then
|
if [[ -n ${GotErrors[*]} ]] ; then
|
||||||
printf "\n\033[33;1mContainers with errors, wont get updated:\033[0m\n"
|
printf "\n\033[0;31mContainers with errors, wont get updated:\033[0m\n"
|
||||||
printf "%s\n" "${GotErrors[@]}"
|
printf "%s\n" "${GotErrors[@]}"
|
||||||
fi
|
fi
|
||||||
if [[ -n ${GotUpdates[*]} ]] ; then
|
if [[ -n ${GotUpdates[*]} ]] ; then
|
||||||
printf "\n\033[31;1mContainers with updates available:\033[0m\n"
|
printf "\n\033[0;33mContainers with updates available:\033[0m\n"
|
||||||
[[ -z "$UpdYes" ]] && options || printf "%s\n" "${GotUpdates[@]}"
|
[[ -z "$UpdYes" ]] && options || printf "%s\n" "${GotUpdates[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Optionally get updates if there's any
|
### Optionally get updates if there's any
|
||||||
if [ -n "$GotUpdates" ] ; then
|
if [ -n "$GotUpdates" ] ; then
|
||||||
if [ -z "$UpdYes" ] ; then
|
if [ -z "$UpdYes" ] ; then
|
||||||
printf "\n\033[36;1mChoose what containers to update.\033[0m\n"
|
printf "\n\033[0;36mChoose what containers to update.\033[0m\n"
|
||||||
choosecontainers
|
choosecontainers
|
||||||
else
|
else
|
||||||
SelectedUpdates=( "${GotUpdates[@]}" )
|
SelectedUpdates=( "${GotUpdates[@]}" )
|
||||||
fi
|
fi
|
||||||
if [ "$UpdYes" == "${UpdYes#[Nn]}" ] ; then
|
if [ "$UpdYes" == "${UpdYes#[Nn]}" ] ; then
|
||||||
for i in "${SelectedUpdates[@]}"
|
for i in "${SelectedUpdates[@]}"
|
||||||
do
|
do
|
||||||
|
unset CompleteConfs
|
||||||
ContPath=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.working_dir" }}')
|
ContPath=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.working_dir" }}')
|
||||||
ContConfigFile=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.config_files" }}')
|
ContConfigFile=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.config_files" }}')
|
||||||
ContName=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.service" }}')
|
ContName=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.service" }}')
|
||||||
|
ContEnv=$(docker inspect "$i" --format '{{index .Config.Labels "com.docker.compose.project.environment_file" }}')
|
||||||
|
ContImage=$(docker inspect "$i" --format='{{.Config.Image}}')
|
||||||
### Checking if compose-values are empty - hence started with docker run:
|
### Checking if compose-values are empty - hence started with docker run:
|
||||||
if [ -z "$ContPath" ] ; then
|
if [ -z "$ContPath" ] ; then
|
||||||
if [ "$DrUp" == "yes" ] ; then
|
if [ "$DrUp" == "yes" ] ; then
|
||||||
ContImage=$(docker inspect "$i" --format='{{.Config.Image}}')
|
|
||||||
docker pull "$ContImage"
|
docker pull "$ContImage"
|
||||||
printf "%s\n" "$i got a new image downloaded, rebuild manually with preferred 'docker run'-parameters"
|
printf "%s\n" "$i got a new image downloaded, rebuild manually with preferred 'docker run'-parameters"
|
||||||
else
|
else
|
||||||
@@ -174,9 +181,18 @@ if [ -n "$GotUpdates" ] ; then
|
|||||||
ComposeFile="$ContPath/$ContConfigFile"
|
ComposeFile="$ContPath/$ContConfigFile"
|
||||||
fi
|
fi
|
||||||
### cd to the compose-file directory to account for people who use relative volumes, eg - ${PWD}/data:data
|
### cd to the compose-file directory to account for people who use relative volumes, eg - ${PWD}/data:data
|
||||||
cd "$(dirname "${ComposeFile}")" || { echo "Path error - skipping $i" ; continue ; }
|
cd "$ContPath" || { echo "Path error - skipping $i" ; continue ; }
|
||||||
$DockerBin -f "$ComposeFile" pull "$ContName"
|
docker pull "$ContImage"
|
||||||
$DockerBin -f "$ComposeFile" up -d "$ContName"
|
### Reformat for multi-compose:
|
||||||
|
IFS=',' read -r -a Confs <<< "$ContConfigFile" ; unset IFS
|
||||||
|
for conf in "${Confs[@]}"; do CompleteConfs+="-f $conf " ; done
|
||||||
|
|
||||||
|
### Check if the container got an environment file set, use it if so:
|
||||||
|
if [ -n "$ContEnv" ]; then
|
||||||
|
$DockerBin ${CompleteConfs[@]} --env-file "$ContEnv" up -d "$ContName" # unquoted array to allow split - rework?
|
||||||
|
else
|
||||||
|
$DockerBin ${CompleteConfs[@]} up -d "$ContName" # unquoted array to allow split - rework?
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
printf "\033[0;32mAll done!\033[0m\n"
|
printf "\033[0;32mAll done!\033[0m\n"
|
||||||
[[ -z "$PruneQ" ]] && read -r -p "Would you like to prune dangling images? y/[n]: " PruneQ
|
[[ -z "$PruneQ" ]] && read -r -p "Would you like to prune dangling images? y/[n]: " PruneQ
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
### Requires the regctl binary.
|
|
||||||
### Get it here: https://github.com/regclient/regclient/releases
|
|
||||||
|
|
||||||
### Preferably placed in .bashrc or similar
|
|
||||||
|
|
||||||
### Set the full path to the binary or just regctl if in PATH:
|
|
||||||
regctl="/home/gw-tdc/dockers/regctl"
|
|
||||||
|
|
||||||
dupc () {
|
|
||||||
if [[ "$@" == "help" ]]; then
|
|
||||||
echo "No container name given, here's the list of currently running containers:"
|
|
||||||
docker ps --format '{{.Names}}'
|
|
||||||
else
|
|
||||||
for i in $(docker ps --filter "name=$@" --format '{{.Names}}')
|
|
||||||
do
|
|
||||||
RepoUrl=$(docker inspect $i --format='{{.Config.Image}}')
|
|
||||||
LocalHash=$(docker image inspect $RepoUrl --format '{{.RepoDigests}}')
|
|
||||||
RegHash=$($regctl image digest --list $RepoUrl 2>/dev/null)
|
|
||||||
if [ $? -eq 0 ] ; then
|
|
||||||
if [[ "$LocalHash" = *"$RegHash"* ]] ; then printf "$i is already latest.\n" ; else printf "$i got updates.\n" ; fi
|
|
||||||
else
|
|
||||||
printf "$i got errors, no check possible.\n"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
dupc $1
|
|
||||||
26
errorCheck.sh
Normal file
26
errorCheck.sh
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
SearchName="$1"
|
||||||
|
for i in $(docker ps --filter "name=$SearchName" --format '{{.Names}}') ; do
|
||||||
|
echo "------------ $i ------------"
|
||||||
|
ContPath=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.working_dir" }}')
|
||||||
|
[ -z "$ContPath" ] && { "$i has no compose labels - skipping" ; continue ; }
|
||||||
|
ContConfigFile=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.config_files" }}')
|
||||||
|
ContName=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.service" }}')
|
||||||
|
ContEnv=$(docker inspect "$i" --format '{{index .Config.Labels "com.docker.compose.project.environment_file" }}')
|
||||||
|
ContImage=$(docker inspect "$i" --format='{{.Config.Image}}')
|
||||||
|
|
||||||
|
if [[ $ContConfigFile = '/'* ]] ; then
|
||||||
|
ComposeFile="$ContConfigFile"
|
||||||
|
else
|
||||||
|
ComposeFile="$ContPath/$ContConfigFile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "Service name:\t\t$ContName"
|
||||||
|
echo -e "Project working dir:\t$ContPath"
|
||||||
|
echo -e "Compose files:\t\t$ComposeFile"
|
||||||
|
echo -e "Container image:\t$ContImage"
|
||||||
|
echo
|
||||||
|
echo "Mounts:"
|
||||||
|
docker inspect -f '{{ range .Mounts }}{{ .Source }}:{{ .Destination }}{{ printf "\n" }}{{ end }}' $i
|
||||||
|
echo
|
||||||
|
done
|
||||||
BIN
example.gif
BIN
example.gif
Binary file not shown.
|
Before Width: | Height: | Size: 345 KiB After Width: | Height: | Size: 333 KiB |
Reference in New Issue
Block a user