Directive overlay

Hi,

I am taking over a Dockerfile to setup an image of a monitoring host running Ubuntu.

The file contains a line:
ADD overlay /

I cant find an explanation of it on the Docker file reference doc as ADD has no overlay option in it

Can someone please explain what it means and why i cant find it in the ref doc?

Many thanks

“overlay” is not an option, but a folder containing the root filesystem of the image as a first layer. Probably a Linux distribution or files of a distroless image. You linked the documentation which starts with this:

ADD [OPTIONS] <src> ... <dest>
ADD [OPTIONS] ["<src>", ... "<dest>"]

[ ] means optional while < > means mandatory. So overlay is not an option, but <src>

Thanks

This is a normal Ubuntu the Dockerfile also has these 2 labels

LABEL org.opencontainers.image.ref.name=ubuntu|
LABEL org.opencontainers.image.version=24.04|

Do you have an idea what would be the logic behind this directive?

Those are standard labels which you can find by searching for the label name like org.opencontainers.image.ref.name

Also the link from the documentation

Docker object labels | Docker Docs.

You probably need to learn the Docker and container basics too.

Recommended links to learn the basics and concepts:

But this was not related to the original question, so please, if you have other questions, open a new topic for new questions.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.