pull container 安装,经常会遇到不知道下载的是哪个OS(debian, linux, centos, ubuntu)的情况,可以用以下方式确认
# uname -a
Linux bae3f6205782 4.19.76-linuxkit #1 SMP Tue May 26 11:42:35 UTC 2020 x86_64 GNU/Linux
# more /etc/issue
Debian GNU/Linux 10 \n \l
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
cat /etc/os-release 给出最完整的信息
参考:
https://serverfault.com/questions/805389/which-os-is-running-in-my-docker-container
网友评论