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

singularity inspect doesn't support OCI-SIF images #3416

Open
4 tasks done
nathanweeks opened this issue Dec 4, 2024 · 0 comments
Open
4 tasks done

singularity inspect doesn't support OCI-SIF images #3416

nathanweeks opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nathanweeks
Copy link

Before you report an issue...

Only issues that can be replicated on the latest release, or development branch, of SingularityCE will be investigated and fixed. The open source project does not maintain long-term stable branches or fix bugs in prior versions. If you require LTS support then please see the Sylabs website.

Version of Singularity

What version of Singularity are you using? Run:

$ singularity --version
singularity-ce version 4.2.0-rc.1+159-gd39154d93

Describe the bug
The singularity inspect command does not support OCI-SIF images, and issues a misleading suggestion to use --oci mode (which apparently isn't supported).

To Reproduce

Steps to reproduce the behavior:

$ singularity inspect test.oci.sif 
FATAL:   could not inspect container: unable to process command: exit status 255: error output:
FATAL:   While checking image: native runtime does not support OCI-SIF images, use --oci mode
$ singularity inspect --oci test.oci.sif 
Error for command "inspect": unknown flag: --oci

Expected behavior

Ideally the singularity inspect command would produce informative output (it would be particularly helpful for singularity inspect -d to emit information similar to [docker|podman] history --human --no-trunc <image>), or else state that singularity inspect does not support OCI-SIF images.

OS / Linux Distribution

Which Linux distribution are you using? Is it up-to-date?

$ cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.9 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.9 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2029-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.9"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.9"

Installation Method

Compiled from source:

./mconfig --prefix=/home/user/local/singularity --without-suid --without-seccomp --without-conmon
cd builddir
make
make install

Additional context

@nathanweeks nathanweeks added the bug Something isn't working label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant