Hi Matthias,
Thanks for reaching out!
On Mon, Jan 27, 2025 at 8:57 AM Matthias Apitz <guru(a)unixarea.de> wrote:
Hello,
I'm trying to use LTSS container from SuSE registry, this one
https://registry.suse.com/repositories/suse-ltss-sle12-5-sles12sp5
The instructions in
https://documentation.suse.com/container/all/single-html/Container-guide/...
say how to login:
$ cat /etc/zypp/credentials.d/SCCcredentials
username=SCC_xxxxxxxxx
password=85xxxxxxxxx
...
$ echo '85xxxxxxxx' | podman login -u 'SCC_xxxxxxxx' --password-stdin
registry.suse.com
Login Succeeded!
Maybe run it with `podman --log-level=debug login ...` and inspect the logs
to see which files may be used.
This login creates a file
$ ls -l /run/user/1000/containers/auth.json
-rw------- 1 cups root 133 27. Jan 07:41
/run/user/1000/containers/auth.json
I copied this over to:
$ cp -p /run/user/1000/containers/auth.json ~/.config/containers/auth.json
and set:
$ export REGISTRY_AUTH_FILE=/home/cups/.config/containers/auth.json
Does it work without copying the file? I am not sure why you're copying it
in the first place.
but it does not works, at least not how I would expect it:
$ podman build -t sles10-sp3-v41pl2 sles10-sp3-v41pl2
STEP 1/22: FROM
registry.suse.com/suse/ltss/sle12.5/sles12sp5:latest
Trying to pull
registry.suse.com/suse/ltss/sle12.5/sles12sp5:latest...
Error: creating build container: initializing source docker://
registry.suse.com/suse/ltss/sle12.5/sles12sp5:latest: reading manifest
latest in
registry.suse.com/suse/ltss/sle12.5/sles12sp5: requested access
to the resource is denied
also this doesn't work:
$ podman build --creds=SCC_xxxxxxxx:85xxxxxxxx -t sles10-sp3-v41pl2
sles10-sp3-v41pl2
https://registry.suse.com/repositories/suse-ltss-sle12-5-sles12sp5
gives:
registry.suse.com/suse/ltss/sle12.5/sles12sp5:latest
but inspect says:
$ podman inspect
registry.suse.com/suse/ltss/sle12.5/sles12sp5:latest
Error: no such object: "
registry.suse.com/suse/ltss/sle12.5/sles12sp5:latest"
What I'm doing wrong here?
What does `podman images` show?
Kind regards,
Valentin
Thanks
matthias
--
Matthias Apitz, ✉ guru(a)unixarea.de,
http://www.unixarea.de/
+49-176-38902045
Public GnuPG key:
http://www.unixarea.de/key.pub
_______________________________________________
Podman mailing list -- podman(a)lists.podman.io
To unsubscribe send an email to podman-leave(a)lists.podman.io