dell / csm

Dell Container Storage Modules (CSM)
Apache License 2.0
68 stars 15 forks source link

[QUESTION]: make docker command does not complete successfully #1391

Open satoshi-tokyo opened 2 months ago

satoshi-tokyo commented 2 months ago

How can the Team help you today?

Details: Tried OS: Rocky Linux 8.9 and Ubuntu 22.04 Repo: https://github.com/dell/csm-metrics-powerscale.git make docker command uses docker and buildah so I tried to install both but it seems they conflict each other, resulting unable to install both at the same time. In workflows/actions.yaml, podman is used which does not conflict with buildah. (I replaced docker with podman in Makefile and it could build an image) Please suggest what package version and OS under which condition make docker works. Thank you.

Log:

$ sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Last metadata expiration check: 0:02:40 ago on Tue 23 Jul 2024 10:13:08 AM JST.
Package docker-ce-3:27.1.0-1.el8.x86_64 is already installed.
Package docker-ce-cli-1:27.1.0-1.el8.x86_64 is already installed.
Package containerd.io-1.7.19-3.1.el8.x86_64 is already installed.
Package docker-buildx-plugin-0.16.1-1.el8.x86_64 is already installed.
Package docker-compose-plugin-2.29.0-1.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

$ sudo yum install buildah
Last metadata expiration check: 0:02:57 ago on Tue 23 Jul 2024 10:13:08 AM JST.
Error:
 Problem: package buildah-2:1.33.8-1.module+el8.10.0+1833+b6e0f287.x86_64 from appstream requires runc >= 1.0.0-26, but none of the providers can be installed
  - package containerd.io-1.6.28-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.6.28-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.6.28-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - package containerd.io-1.6.28-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - problem with installed package containerd.io-1.7.19-3.1.el8.x86_64
  - package containerd.io-1.6.28-3.2.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.6.28-3.2.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.6.28-3.2.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - package containerd.io-1.6.28-3.2.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - cannot install the best candidate for the job
  - package runc-1.0.0-56.rc5.dev.git2abd837.module+el8.5.0+681+c9a1951f.x86_64 from appstream is filtered out by modular filtering
  - package runc-1.0.0-66.rc10.module+el8.5.0+770+e2f49861.x86_64 from appstream is filtered out by modular filtering
  - package runc-1.0.0-73.rc95.module+el8.7.0+1152+ac778627.x86_64 from appstream is filtered out by modular filtering
  - package runc-1:1.1.5-2.module+el8.9.0+1445+07728297.x86_64 from appstream is filtered out by modular filtering
  - package containerd.io-1.6.31-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.6.31-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.6.31-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - package containerd.io-1.6.31-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - package containerd.io-1.6.32-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.6.32-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.6.32-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - package containerd.io-1.6.32-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - package containerd.io-1.6.33-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.6.33-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.6.33-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - package containerd.io-1.6.33-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - package containerd.io-1.7.18-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.7.18-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.7.18-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - package containerd.io-1.7.18-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - package containerd.io-1.7.19-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.7.19-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.7.19-3.1.el8.x86_64 from docker-ce-stable conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - package containerd.io-1.7.19-3.1.el8.x86_64 from docker-ce-stable obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - package containerd.io-1.7.19-3.1.el8.x86_64 from @System conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - installed package containerd.io-1.7.19-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream
  - package containerd.io-1.7.19-3.1.el8.x86_64 from @System conflicts with runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
  - installed package containerd.io-1.7.19-3.1.el8.x86_64 obsoletes runc provided by runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

$ sudo yum install buildah --allowerasing
isc-kea-2-4                                     588  B/s | 659  B     00:01
isc-kea-2-4-noarch                              703  B/s | 659  B     00:00
isc-kea-2-4-source                              703  B/s | 659  B     00:00
Dependencies resolved.
================================================================================
 Package   Arch   Version                               Repository         Size
================================================================================
Installing:
 buildah   x86_64 2:1.33.8-1.module+el8.10.0+1833+b6e0f287
                                                        appstream         9.7 M
Installing dependencies:
 containers-common
           x86_64 2:1-81.module+el8.10.0+1825+623b0c20  appstream         145 k
 criu      x86_64 3.18-5.module+el8.10.0+1825+623b0c20  appstream         563 k
 libnet    x86_64 1.1.6-15.el8                          appstream          66 k
 runc      x86_64 1:1.1.12-1.module+el8.10.0+1825+623b0c20
                                                        appstream         3.1 M
 shadow-utils-subid
           x86_64 2:4.6-22.el8                          baseos            112 k
Removing dependent packages:
 containerd.io
           x86_64 1.7.19-3.1.el8                        @docker-ce-stable 149 M
 docker-ce x86_64 3:27.1.0-1.el8                        @docker-ce-stable 104 M
 docker-ce-rootless-extras
           x86_64 27.1.0-1.el8                          @docker-ce-stable  15 M

Transaction Summary
================================================================================
Install  6 Packages
Remove   3 Packages

Total download size: 14 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): containers-common-1-81.module+el8.10.0+1 103 kB/s | 145 kB     00:01
(2/6): libnet-1.1.6-15.el8.x86_64.rpm           339 kB/s |  66 kB     00:00
(3/6): criu-3.18-5.module+el8.10.0+1825+623b0c2 311 kB/s | 563 kB     00:01
(4/6): buildah-1.33.8-1.module+el8.10.0+1833+b6 3.1 MB/s | 9.7 MB     00:03
(5/6): runc-1.1.12-1.module+el8.10.0+1825+623b0 1.8 MB/s | 3.1 MB     00:01
(6/6): shadow-utils-subid-4.6-22.el8.x86_64.rpm  63 kB/s | 112 kB     00:01
--------------------------------------------------------------------------------
Total                                           2.9 MB/s |  14 MB     00:04
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Running scriptlet: shadow-utils-subid-2:4.6-22.el8.x86_64                 1/1
  Installing       : shadow-utils-subid-2:4.6-22.el8.x86_64                 1/9
  Installing       : libnet-1.1.6-15.el8.x86_64                             2/9
  Running scriptlet: libnet-1.1.6-15.el8.x86_64                             2/9
  Installing       : criu-3.18-5.module+el8.10.0+1825+623b0c20.x86_64       3/9
  Installing       : runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64   4/9
  Installing       : containers-common-2:1-81.module+el8.10.0+1825+623b0c   5/9
  Installing       : buildah-2:1.33.8-1.module+el8.10.0+1833+b6e0f287.x86   6/9
  Running scriptlet: docker-ce-3:27.1.0-1.el8.x86_64                        7/9
  Erasing          : docker-ce-3:27.1.0-1.el8.x86_64                        7/9
  Running scriptlet: docker-ce-3:27.1.0-1.el8.x86_64                        7/9
  Running scriptlet: containerd.io-1.7.19-3.1.el8.x86_64                    8/9
  Erasing          : containerd.io-1.7.19-3.1.el8.x86_64                    8/9
  Running scriptlet: containerd.io-1.7.19-3.1.el8.x86_64                    8/9
  Running scriptlet: docker-ce-rootless-extras-27.1.0-1.el8.x86_64          9/9
  Erasing          : docker-ce-rootless-extras-27.1.0-1.el8.x86_64          9/9
  Running scriptlet: docker-ce-rootless-extras-27.1.0-1.el8.x86_64          9/9
  Verifying        : buildah-2:1.33.8-1.module+el8.10.0+1833+b6e0f287.x86   1/9
  Verifying        : containers-common-2:1-81.module+el8.10.0+1825+623b0c   2/9
  Verifying        : criu-3.18-5.module+el8.10.0+1825+623b0c20.x86_64       3/9
  Verifying        : libnet-1.1.6-15.el8.x86_64                             4/9
  Verifying        : runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64   5/9
  Verifying        : shadow-utils-subid-2:4.6-22.el8.x86_64                 6/9
  Verifying        : containerd.io-1.7.19-3.1.el8.x86_64                    7/9
  Verifying        : docker-ce-3:27.1.0-1.el8.x86_64                        8/9
  Verifying        : docker-ce-rootless-extras-27.1.0-1.el8.x86_64          9/9

Installed:
  buildah-2:1.33.8-1.module+el8.10.0+1833+b6e0f287.x86_64
  containers-common-2:1-81.module+el8.10.0+1825+623b0c20.x86_64
  criu-3.18-5.module+el8.10.0+1825+623b0c20.x86_64
  libnet-1.1.6-15.el8.x86_64
  runc-1:1.1.12-1.module+el8.10.0+1825+623b0c20.x86_64
  shadow-utils-subid-2:4.6-22.el8.x86_64
Removed:
  containerd.io-1.7.19-3.1.el8.x86_64           docker-ce-3:27.1.0-1.el8.x86_64
  docker-ce-rootless-extras-27.1.0-1.el8.x86_64

Complete!

$ systemctl status docker
Unit docker.service could not be found.

$ buildah version
Version:         1.33.8
Go Version:      go1.21.11 (Red Hat 1.21.11-1.module+el8.10.0+1831+fc70fba6)
Image Spec:      1.1.0-rc.5
Runtime Spec:    1.1.0
CNI Spec:        1.0.0
libcni Version:  v1.1.2
image Version:   5.29.3
Git Commit:
Built:           Wed Jul  3 07:52:13 2024
OS/Arch:         linux/amd64
BuildPlatform:   linux/amd64
HarishH-DELL commented 3 weeks ago

Hi @satoshi-tokyo change docker to podman like image and run this command make podman