突然想到

如果要確認 linux 版本..該如何確認呢?

[ lsb_release: command not found in latest Ubuntu Docker container ]
https://stackoverflow.com/questions/58395566/lsb-release-command-not-found-in-latest-ubuntu-docker-container

先使用 apt-get 安裝

apt-get update && apt-get install -y lsb-release && apt-get clean all

然後

lsb_release -a

就可以

root@dc6a38bfa958:/workspace# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic

給大家參考囉