Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCI container fixes #1001

Merged
merged 3 commits into from
Jul 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
client/oci: Add errors for missing umoci
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Jul 15, 2024
commit 5c01e21a85fa67fcf91ea0b9f5f0125a4ef177c9
5 changes: 5 additions & 0 deletions client/oci_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ func (r *ProtocolOCI) GetImageFile(fingerprint string, req ImageFileRequest) (*I
return nil, fmt.Errorf("OCI image export currently requires root access")
}

_, err := exec.LookPath("umoci")
if err != nil {
return nil, fmt.Errorf("OCI container handling requires \"umoci\" be present on the system")
}

// Get some temporary storage.
ociPath, err := os.MkdirTemp("", "incus-oci-")
if err != nil {
Expand Down
Loading