In a follow up to the original post Docker Scripts, Docker has made it so that you no longer need to have
jq installed, you can do everything with the
docker client’s inspect command and its (semi)new format feature.
I’ve updated the scripts to use the format command.
I find this one useful for DevOps uses, when I have the friendly name, I can compare the current running container’s image with the one I expect it to have (like an update) and redeploy.
These are just easy shortcuts, I’m sure you can write these in different ways or as aliases. Perhaps others will find this useful.