VictoriaSexmer1

Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024
12:34 PM
- 1,707 Views
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


Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024
04:37 PM
- 1,662 Views
2 Replies


Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024
04:37 PM
- 1,663 Views
Hi,
Try this option:
podman build --format docker ....
VictoriaSexmer1

Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024
07:49 PM
- 1,649 Views
Yes, it works!!! Thanks
Join the discussion
You must log in to join this conversation.