bib: deprecate the --local flag
Pulling container images before building would break in the case of authenticated images on podman machine, since the auth file lives on the host and not podman machine and won't know about it. This commit deprecates the `--local` flag and warns users when it is passed to the CLI so that this won't break things for anyone who might already be using the flag. This change means that the user will have to ensure that the container is pulled to the local container store before initiating the build. Co-authored-by: Ondřej Budai <obudai@redhat.com>
This commit is contained in:
parent
c74c402d74
commit
441d408aee
1 changed files with 3 additions and 1 deletions
|
|
@ -153,7 +153,9 @@ func validateCanRunTargetArch(targetArch string) error {
|
|||
func ValidateHasContainerTags(imgref string) error {
|
||||
output, err := exec.Command("podman", "image", "inspect", imgref, "--format", "{{.Labels}}").Output()
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed inspect image: %w", util.OutputErr(err))
|
||||
return fmt.Errorf(`failed to inspect the image: %w
|
||||
bootc-image-builder no longer pulls images, make sure to pull it before running bootc-image-builder:
|
||||
sudo podman pull %s`, util.OutputErr(err), imgref)
|
||||
}
|
||||
|
||||
tags := string(output)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue