This FAQ from the official Docker page (cached here) says:
Unlike VMs, containers do not have an OS within it. They simply share the underlying kernel with the other containers.
OS is usually defined as kernel + shell
. So, why is the above FAQ stating that OS is not there inside the container, when almost all images have a barebones OS present in them (except for the rarely used case when images are created from scratch)?
Images don't have the OS kernel inside them, but they do have an OS in all practical cases.