-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compose-image: Add
--initialize-mode
A long time ago I did containers/skopeo@08b27fc in preparation for this change. Basically this is what we really want to be the default, but couldn't at the time: "Create a new image if one doesn't exist". For completeness though, we also add support for `always` (which is the existing `--initialize`) as well as `--never` (which ensures we never overwrite an existing image, in case someone cares). However in testing this out: it basically works OK with a registry transport which is the big one, but: - It just plain doesn't work with `.ociarchive` due to skopeo bugs - It even more unfortunately doesn't work with `oci` directories and a target image reference; e.g. `--format=oci manifest.yaml oci:foo:sometag`
- Loading branch information
Showing
4 changed files
with
96 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters