You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have met a problem during building an image through podman-py:
File "/usr/local/lib/python3.8/site-packages/podman/domain/images_build.py", line 89, in build
params["dockerfile"] = api.prepare_containerfile(kwargs["path"], params["dockerfile"])
File "/usr/local/lib/python3.8/site-packages/podman/api/tar_utils.py", line 50, in prepare_containerfile
shutil.copy2(dockerfile_path, proxy_path, follow_symlinks=False)
File "/usr/lib64/python3.8/shutil.py", line 435, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib64/python3.8/shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '.containerfile.7482d90f40a649bde91353e5326d5a698053219c'
It appears if path parameter for images.build is set, but dockerfile isn't.
Looked a bit into podman-py code and found probable cause of this issue in podman-py/podman/api/tar_utils/prepare_containerfile:
Have met a problem during building an image through podman-py:
It appears if path parameter for images.build is set, but dockerfile isn't.
Looked a bit into podman-py code and found probable cause of this issue in podman-py/podman/api/tar_utils/prepare_containerfile:
It seems, that between creating path and copying - there should be creation of temporary file.
The text was updated successfully, but these errors were encountered: