If you leave it blank in your new Docker file, it inherits the one that is in the base image.
For instance:
the base
FROM ubuntu CMD ["echo", "AAA"]
layer1
FROM base
If you create above the images and run layer1 , you will get the following:
$ sudo docker run -it layer1 AAA
source share