Error While create Images

Hi Team ,

While trying to create redis container getting below error. Any suggestion.

[root@prestovm1 ~]# docker pull redis
Trying to pull registry.redhat.io/redis:latest...Failed
Trying to pull quay.io/redis:latest...Failed
Trying to pull docker.io/redis:latest...Failed
error pulling image "redis": unable to pull redis: 3 errors occurred:

* Error determining manifest MIME type for docker://registry.redhat.io/redis:latest: unable to retrieve auth token: invalid username/password
* Error determining manifest MIME type for docker://quay.io/redis:latest: Error reading manifest latest in quay.io/redis: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!doctype html>\n<html lang=en>\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>\n"
* Error initializing image from source docker://redis:latest: unsupported schema version 2

Thanks,
Debasis

It looks like you are using podman. Can you detail your setup. I can pull the redis image on my Mac M2 using Docker Desktop.

@al1 Sorry for late response. Yes I am using podman since mine is vm with RHEL OS. Please find the details as below.

[root@prestovm1 ~]# which docker
alias docker='podman'
        /usr/bin/podman
[root@prestovm1 ~]# podman --version
podman version 1.0.2-dev
[root@prestovm1 ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.0 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.0"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.0 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.0:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.0
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.0"
[root@prestovm1 ~]#

Thanks,
Debasis

I wasn’t able to find RedHat EL 8.0 in Azure, only 8.7. I think you need to upgrade as I could pull redis from docker hub:

$ podman pull docker.io/library/redis
Trying to pull docker.io/library/redis:latest...
Getting image source signatures
Copying blob 9ae6a7172b01 done   | 
Copying blob 493d196d734f done   | 
Copying blob 2c310454138b done   | 
Copying blob 3eba9ec960aa done   | 
Copying blob 3d36c165ff0a done   | 
Copying blob 09f376ebb190 done   | 
Copying blob 4f4fb700ef54 done   | 
Copying blob 484e0560ae90 done   | 
Copying config 1a83fd5ede done   | 
Writing manifest to image destination
1a83fd5edeedfe9b2889414a2226f9f6bc24235f027f6f27f9e86ad38ccf440e
$ cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.7 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.7 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.7
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.7"
$ podman version
Client:       Podman Engine
Version:      4.9.4-rhel
API Version:  4.9.4-rhel
Go Version:   go1.21.7 (Red Hat 1.21.7-1.module+el8.10.0+21318+5ea197f8)
Built:        Mon Apr  1 15:55:40 2024
OS/Arch:      linux/amd64

Let me check and update the same.

Thanks,
Debasis

@al1 Still getting the error while pull images.

[root@prestovm1 ~]# podman pull docker.io/library/redis
Trying to pull docker.io/library/redis...Failed
error pulling image "docker.io/library/redis": unable to pull docker.io/library/redis: unable to pull image: Error initializing image from source docker://redis:latest: unsupported schema version 2

The podman version running on my VM is as below. Is there anything due to podman version.

[root@prestovm1 ~]# podman version
Version:       1.0.2-dev
Go Version:    go1.11.5
OS/Arch:       linux/amd64

I am trying below command to install podman.

[root@prestovm1 ~]# yum install podman
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:00:28 ago on Tue 18 Jun 2024 09:49:56 PM EDT.
Dependencies resolved.
===================================================================================================================================================================
 Package                      Arch                         Version                                                           Repository                       Size
===================================================================================================================================================================
Installing:
 podman                       x86_64                       1.0.0-2.git921f98f.module+el8+2785+ff8a053f                       APpstream                       9.0 M

Transaction Summary
===================================================================================================================================================================
Install  1 Package

Total download size: 9.0 M
Installed size: 37 M

Thanks,
Debasis

Try added the debug flag to the pull command:

--log-level=debug

After installing correct version of podman able download images.

[root@prestovm1 ~]# podman version
Client:       Podman Engine
Version:      4.9.4-rhel
API Version:  4.9.4-rhel
Go Version:   go1.21.7 (Red Hat 1.21.7-2.module+el8.10.0+21638+b01be198)
Built:        Mon Jun 10 07:56:14 2024
OS/Arch:      linux/amd64

Thanks,
Debasis