I encounter a problem that check which OS is running in my docker container, or extend it as how to check which OS am I using?
1 | cat /etc/os-release |
1 | hostnamectl |
For docker image, you can use docker image inspect
command:
1 | docker image inspect <image name>:<tag> | grep -i "base image" |