fix(build): build the local image when Podman reports it missing (#1527)

This commit is contained in:
angelrenefm authored and GitHub committed 2026-10-25 12:08:08 -04:00
1 parent b1c70f5f81
commit 86ecb716eb
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ if __name__ == '__main__':
sys.exit('Docker is unavailable: ' + engine.stderr.strip())
image = run('image', 'inspect', sys.argv[1])
if image.returncode:
if 'No such image' not in image.stderr:
if 'No such image' not in image.stderr and 'image not known' not in image.stderr: # Docker, Podman
sys.exit('Cannot inspect the build image: ' + image.stderr.strip())
repo = Path(__file__).resolve().parents[1]
subprocess.run(['docker', 'build', '--platform', 'linux/amd64', '-t', sys.argv[1],