VictoriaSexmer1
Mission Specialist
Mission Specialist
  • 161 Views

WAR[0009] ONBUILD is not supported for OCI image format, COPY will be ignored. Must use docker forma

Jump to solution

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?"

 

 

 

1 Solution

Accepted Solutions
ipalagin
Flight Engineer Flight Engineer
Flight Engineer
  • 116 Views

Hi,

Try this option:

podman build --format docker ....

 

View solution in original post

2 Replies
ipalagin
Flight Engineer Flight Engineer
Flight Engineer
  • 117 Views

Hi,

Try this option:

podman build --format docker ....

 

VictoriaSexmer1
Mission Specialist
Mission Specialist
  • 103 Views

Yes, it works!!! Thanks

Join the discussion
You must log in to join this conversation.