I already have a Containerfile to create a container image. The file includes the following instruction:
....
ONBUILD COPY src/ /var/www/html
....
However, when I execute this instruction, I receive the following warning message:
WAR[0009] ONBUILD is not supported for OCI image format, COPY src/ /var/www/html/ will be ignored. Must use docker format.
I am unsure how to resolve this issue, as one of the requirements is to allow copying the child’s files and overwriting the parent’s files.
Could somebody please help me?"
Hi,
Try this option:
podman build --format docker ....
Yes, it works!!! Thanks
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.