Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 920 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 920 Bytes

Host and Kernel details

Demonstrates how the host kernel versions are different for build and execution.

📋 Script to follow

When run on a different system it shows the kernel version will be different. Shows the kernel version during build.

🏠 Build

Building will output version

# building can output the current kernel version
docker build --no-cache --progress=plain -t $(basename $(pwd)) .

> Linux 83fe3d9188f8 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 Linux

⚡️ Execute (different machine)

Running on a different machine (vm) will return different value.

# Execution
docker run $(basename $(pwd))

> Linux 3659e36111ba 4.9.184-linuxkit #1 SMP Tue Jul 2 22:58:16 UTC 2019 x86_64 Linux

👀 Resources

  • File list of package cpuinfo in sid of architecture amd64 here