龙芯 loongarch64 的openEuler中如何安装docker

环境:

[root@localhost docker]# hostnamectl
   Static hostname: (unset)                                     
Transient hostname: localhost
         Icon name: computer-desktop
           Chassis: desktop 🖥️
        Machine ID: e5d5ca85f2654f7b81cb0540c1ab1e02
           Boot ID: 032c044cfac64ebe906f658648614cbc
  Operating System: openEuler 24.03 (LTS)
            Kernel: Linux 6.6.0-29.0.0.35.oe2403.loongarch64
      Architecture: loongarch64
   Hardware Vendor: PowerLeader
    Hardware Model: BD-212L3
  Firmware Version: Loongson UEFI (3C50007A2000_C2) V4.0.18-Dual

问题现象:

[root@localhost docker]# dnf install -y docker-engine.x86_64
Last metadata expiration check: 2:14:02 ago on 2024年07月29日 星期一 12时05分42秒.
Error: 
 Problem: 冲突的请求
  - package docker-engine-2:18.09.0-336.oe2403.x86_64 from OS does not have a compatible architecture
  - nothing provides libltdl.so.7()(64bit) needed by docker-engine-2:18.09.0-336.oe2403.x86_64 from OS
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

查看包信息

[root@localhost docker]# dnf info libtool-ltdl.x86_64
Last metadata expiration check: 2:28:20 ago on 2024年07月29日 星期一 12时05分42秒.
Available Packages
Name         : libtool-ltdl
Version      : 2.4.7
Release      : 3.oe2403
Architecture : x86_64
Size         : 30 k
Source       : libtool-2.4.7-3.oe2403.src.rpm
Repository   : OS
Summary      : Runtime libraries for GNU Libtool Dynamic Module Loader
URL          : http://www.gnu.org/software/libtool/
License      : GPLv2+ and LGPLv2+ and GFDL-1.3-or-later
Description  : The libtool-ltdl package contains the GNU Libtool Dynamic Module Loader, a
             : library that provides a consistent, portable interface which simplifies the
             : process of using dynamic modules.

[root@localhost docker]# dnf info docker-engine
Last metadata expiration check: 2:28:52 ago on 2024年07月29日 星期一 12时05分42秒.
Available Packages
Name         : docker-engine
Epoch        : 2
Version      : 18.09.0
Release      : 336.oe2403
Architecture : x86_64
Size         : 47 M
Source       : docker-engine-18.09.0-336.oe2403.src.rpm
Repository   : OS
Summary      : The open-source application container engine
URL          : https://mobyproject.org
License      : ASL 2.0
Description  : Docker is an open source project to build, ship and run any application as a
             : lightweight container.
             : 
             : Docker containers are both hardware-agnostic and platform-agnostic. This means
             : they can run anywhere, from your laptop to the largest EC2 compute instance and
             : everything in between - and they don't require you to use a particular
             : language, framework or packaging system. That makes them great building blocks
             : for deploying and scaling web apps, databases, and backend services without
             : depending on a particular stack or provider.

原因找到了,使用的yum源必须完全正确,问题解决。