desktop-linux icon indicating copy to clipboard operation
desktop-linux copied to clipboard

How to install Docker Desktop on CentOS 9?

Open Delicious-Bacon opened this issue 3 years ago • 10 comments

  • [x] I have tried with the latest version of Docker Desktop
  • [ ] I have tried disabling enabled experimental features
  • [ ] I have uploaded Diagnostics
  • Diagnostics ID:

Expected behavior

Docker Desktop install.

Actual behavior

Dependency issues.

Information

  • Linux distro: Rocky Linux
  • Distro version: 9
  • Docker Desktop Version: 4.11.0-x86_64

Steps to reproduce the behavior

I run Rocky Linux 9 and I don't know how to install Docker Desktop.

Here's what I run:

$ sudo dnf install docker-desktop-4.11.0-x86_64.rpm 
Rocky Linux 9 - BaseOS                          4.4 kB/s | 3.6 kB     00:00    
Rocky Linux 9 - AppStream                       7.1 kB/s | 3.6 kB     00:00    
Rocky Linux 9 - AppStream                       3.6 MB/s | 6.0 MB     00:01    
Rocky Linux 9 - CRB                             8.9 kB/s | 3.6 kB     00:00    
Error: 
 Problem: conflicting requests
  - nothing provides qemu-system-x86 >= 5.2.0 needed by docker-desktop-4.11.0-83626.x86_64
  - nothing provides pass needed by docker-desktop-4.11.0-83626.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

It looks like I don't have qemu-system-x86 and pass.

I do have qemu-kvm:

$ sudo dnf install qemu-kvm
Last metadata expiration check: 0:12:05 ago on Wed 07 Sep 2022 09:44:13 AM CEST.
Package qemu-kvm-17:6.2.0-11.el9_0.3.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

I don't understand how to provide the qemu-system-x86 with it.

As for pass, I don't even know where to begin looking for that because of such a generic name.


I had originally posted this as a question in moby discussions but I was told to post it as an issue here instead.

Delicious-Bacon avatar Sep 07 '22 14:09 Delicious-Bacon

just want to re-iterate, the same dependencies (qemu-system-x86 & pass) error in rhel 9.1 machine:

~/Downloads ❯ sudo dnf install ./docker-desktop-4.15.0-x86_64.rpm              
Updating Subscription Management repositories.
Last metadata expiration check: 3:50:01 ago on Fri 09 Dec 2022 03:29:35 AM IST.
Error: 
 Problem: conflicting requests
  - nothing provides qemu-system-x86 >= 5.2.0 needed by docker-desktop-4.15.0-93002.x86_64
  - nothing provides pass needed by docker-desktop-4.15.0-93002.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

raghavendramallela avatar Dec 09 '22 01:12 raghavendramallela

just want to re-iterate, the same dependencies (qemu-system-x86 & pass) error in rhel 9.1 machine:

~/Downloads ❯ sudo dnf install ./docker-desktop-4.15.0-x86_64.rpm              
Updating Subscription Management repositories.
Last metadata expiration check: 3:50:01 ago on Fri 09 Dec 2022 03:29:35 AM IST.
Error: 
 Problem: conflicting requests
  - nothing provides qemu-system-x86 >= 5.2.0 needed by docker-desktop-4.15.0-93002.x86_64
  - nothing provides pass needed by docker-desktop-4.15.0-93002.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Apparently the official statement from Red Hat:

Red Hat does not support creating KVM virtual machines in any type of container that includes the elements of the RHEL 9 hypervisor (such as the QEMU emulator or the libvirt package).

The reasoning here is they prefer you to use OpenShift Virtualization which is officially supported for obvious reasons.

Source: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_managing_virtualization/assembly_feature-support-and-limitations-in-rhel-9-virtualization_configuring-and-managing-virtualization#unsupported-features-in-rhel-9-virtualization_feature-support-and-limitations-in-rhel-9-virtualization

GlyphSH avatar Jan 31 '23 17:01 GlyphSH

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 30 days.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robott avatar May 01 '23 01:05 docker-robott

/remove-lifecycle stale Got the same problem on AlmaLinux 9.2

zio-mitch avatar Jun 21 '23 09:06 zio-mitch

Still nothing on centos9 rocky9

fixader avatar Jul 25 '23 07:07 fixader

I'm trying ot use Docker Desktop to learn how to use Ansible: Red Hat's non-support of this is causing difficulties in learning how to use both services.

priestapostate1208 avatar Aug 26 '23 04:08 priestapostate1208

Hi guys, was going down similar path as you. I use the alternative now on RHEL 9 (desktop) and that's Podman desktop. It has compatibility for Docker so works for the Docker use case. Not the solution to the original issue but just wanted to tell you in case you really want a docker desktop like gui app. ksnip_20231224-105843

endegraaf avatar Dec 24 '23 10:12 endegraaf

Thank you endegraaf for this hint! It saved me a lot of time by avoiding going down the rabbit hole trying to install Docker Desktop on my RHEL 8 installation!

terje-a avatar Jan 18 '24 06:01 terje-a

@endegraaf Thanks for saving me a lot of time.

russhughes avatar Feb 11 '24 15:02 russhughes

i managed to proceed with installation of the rpm by using Qemu from the Ghettoforge repo (https://rhel.pkgs.org/9/ghettoforge-x86_64/qemu-system-x86-8.2.0-1.2.gf.el9.x86_64.rpm.html) but i'm unable to launch the docker desktop application as it coredumps

however this was sufficient for me as it installed the version of docker CLI where the command docker init works and that was just what i wanted to test

dzodzo666 avatar Apr 23 '24 09:04 dzodzo666