Demonstrates how the host kernel versions are different for build and execution.
When run on a different system it shows the kernel version will be different. Shows the kernel version during 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
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
- File list of package cpuinfo in sid of architecture amd64 here