Main purpose of Docker container is to avoid carrying guest OS in every container, as shown below.
As mentioned here, The
FROM
instruction initializes a new build stage and sets the Base Image for subsequent instructions. As such, a valid Dockerfile must start with a FROM
instruction.
My understanding is, FROM <image>
allow a container to run on its own OS.
Why a valid Docker file must have FROM
instruction?