Keep Track of Base Docker Image from multiple projectsDevOps
This is a very quick trick to keep track of your base image when you have multiple projects insinde a directory with grep.
If you want to quickly list all of your FROM line of Dockerfile with a grep command, try the following one.
grep -R --exclude-dir=node_modules --exclude-dir=vendor "FROM" */Dockerfile | grep php
Here is an example where only the php version is an interest for me.
$ grep -R --exclude-dir=node_modules --exclude-dir=vendor "FROM" */Dockerfile | grep php
Like this, you can easely spot outdate php and image not based on Alpine.
Told you, it was a quick trick.