meta données pour cette page
  •  

Ceci est une ancienne révision du document !


Installation AWX 18+ sur Rcoky Linux 9

Installation des Paquets de base

dnf install wget nmap

installation de docker-ce

root@awx ~]# dnf config-manager --add-repo=https://download.docker.com/linux/rhel/docker-ce.repo 
Ajout du dépôt depuis : https://download.docker.com/linux/rhel/docker-ce.repo
[root@awx ~]# dnf install docker-ce -y
Docker CE Stable - x86_64                                                                                                                                                     365 kB/s |  45 kB     00:00    
Dépendances résolues.
==============================================================================================================================================================================================================
 Paquet                                                  Architecture                         Version                                                    Dépôt                                          Taille
==============================================================================================================================================================================================================
Installation:
 docker-ce                                               x86_64                               3:29.2.1-1.el9                                             docker-ce-stable                                24 M
Installation des dépendances:
 container-selinux                                       noarch                               4:2.240.0-3.el9_7                                          appstream                                       58 k
 containerd.io                                           x86_64                               2.2.1-1.el9                                                docker-ce-stable                                35 M
 docker-ce-cli                                           x86_64                               1:29.2.1-1.el9                                             docker-ce-stable                               8.4 M
 fuse-overlayfs                                          x86_64                               1.16-1.el9_7                                               appstream                                       66 k
 passt                                                   x86_64                               0^20250512.g8ec1341-4.el9_7                                appstream                                      256 k
 passt-selinux                                           noarch                               0^20250512.g8ec1341-4.el9_7                                appstream                                       26 k
Installation des dépendances faibles:
 docker-buildx-plugin                                    x86_64                               0.31.1-1.el9                                               docker-ce-stable                                21 M
 docker-ce-rootless-extras                               x86_64                               29.2.1-1.el9                                               docker-ce-stable                               3.4 M
 docker-compose-plugin                                   x86_64                               5.0.2-1.el9                                                docker-ce-stable                               8.1 M
 
Résumé de la transaction
==============================================================================================================================================================================================================
Installer  10 Paquets
 
Taille totale des téléchargements : 100 M
Taille des paquets installés : 395 M
Téléchargement des paquets :
(1/10): docker-buildx-plugin-0.31.1-1.el9.x86_64.rpm                                                                                                                           29 MB/s |  21 MB     00:00    
(2/10): containerd.io-2.2.1-1.el9.x86_64.rpm                                                                                                                                   37 MB/s |  35 MB     00:00    
(3/10): docker-ce-29.2.1-1.el9.x86_64.rpm                                                                                                                                      23 MB/s |  24 MB     00:01    
(4/10): docker-ce-cli-29.2.1-1.el9.x86_64.rpm                                                                                                                                  21 MB/s | 8.4 MB     00:00    
(5/10): docker-ce-rootless-extras-29.2.1-1.el9.x86_64.rpm                                                                                                                      16 MB/s | 3.4 MB     00:00    
(6/10): container-selinux-2.240.0-3.el9_7.noarch.rpm                                                                                                                          959 kB/s |  58 kB     00:00    
(7/10): fuse-overlayfs-1.16-1.el9_7.x86_64.rpm                                                                                                                                6.9 MB/s |  66 kB     00:00    
(8/10): passt-0^20250512.g8ec1341-4.el9_7.x86_64.rpm                                                                                                                           11 MB/s | 256 kB     00:00    
(9/10): passt-selinux-0^20250512.g8ec1341-4.el9_7.noarch.rpm                                                                                                                  1.5 MB/s |  26 kB     00:00    
(10/10): docker-compose-plugin-5.0.2-1.el9.x86_64.rpm                                                                                                                          30 MB/s | 8.1 MB     00:00    
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                          67 MB/s | 100 MB     00:01     
Docker CE Stable - x86_64                                                                                                                                                      30 kB/s | 1.6 kB     00:00    
Import de la clef GPG 0x621E9F35 :
Utilisateur : « Docker Release (CE rpm) <docker@docker.com> »
Empreinte : 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
Provenance : https://download.docker.com/linux/rhel/gpg
La clé a bien été importée
Test de la transaction
La vérification de la transaction a réussi.
Lancement de la transaction de test
Transaction de test réussie.
Exécution de la transaction
  Préparation           :                                                                                                                                                                                 1/1 
  Installation          : passt-0^20250512.g8ec1341-4.el9_7.x86_64                                                                                                                                       1/10 
  Exécution du scriptlet: passt-selinux-0^20250512.g8ec1341-4.el9_7.noarch                                                                                                                               2/10 
  Installation          : passt-selinux-0^20250512.g8ec1341-4.el9_7.noarch                                                                                                                               2/10 
  Exécution du scriptlet: passt-selinux-0^20250512.g8ec1341-4.el9_7.noarch                                                                                                                               2/10 
  Exécution du scriptlet: container-selinux-4:2.240.0-3.el9_7.noarch                                                                                                                                     3/10 
  Installation          : container-selinux-4:2.240.0-3.el9_7.noarch                                                                                                                                     3/10 
  Exécution du scriptlet: container-selinux-4:2.240.0-3.el9_7.noarch                                                                                                                                     3/10 
  Installation          : docker-buildx-plugin-0.31.1-1.el9.x86_64                                                                                                                                       4/10 
  Exécution du scriptlet: docker-buildx-plugin-0.31.1-1.el9.x86_64                                                                                                                                       4/10 
  Installation          : docker-compose-plugin-5.0.2-1.el9.x86_64                                                                                                                                       5/10 
  Exécution du scriptlet: docker-compose-plugin-5.0.2-1.el9.x86_64                                                                                                                                       5/10 
  Installation          : docker-ce-cli-1:29.2.1-1.el9.x86_64                                                                                                                                            6/10 
  Exécution du scriptlet: docker-ce-cli-1:29.2.1-1.el9.x86_64                                                                                                                                            6/10 
  Installation          : containerd.io-2.2.1-1.el9.x86_64                                                                                                                                               7/10 
  Exécution du scriptlet: containerd.io-2.2.1-1.el9.x86_64                                                                                                                                               7/10 
  Installation          : fuse-overlayfs-1.16-1.el9_7.x86_64                                                                                                                                             8/10 
  Exécution du scriptlet: fuse-overlayfs-1.16-1.el9_7.x86_64                                                                                                                                             8/10 
  Installation          : docker-ce-rootless-extras-29.2.1-1.el9.x86_64                                                                                                                                  9/10 
  Exécution du scriptlet: docker-ce-rootless-extras-29.2.1-1.el9.x86_64                                                                                                                                  9/10 
  Installation          : docker-ce-3:29.2.1-1.el9.x86_64                                                                                                                                               10/10 
  Exécution du scriptlet: docker-ce-3:29.2.1-1.el9.x86_64                                                                                                                                               10/10 
  Exécution du scriptlet: passt-selinux-0^20250512.g8ec1341-4.el9_7.noarch                                                                                                                              10/10 
  Exécution du scriptlet: container-selinux-4:2.240.0-3.el9_7.noarch                                                                                                                                    10/10 
  Exécution du scriptlet: docker-ce-3:29.2.1-1.el9.x86_64                                                                                                                                               10/10 
  Vérification de       : containerd.io-2.2.1-1.el9.x86_64                                                                                                                                               1/10 
  Vérification de       : docker-buildx-plugin-0.31.1-1.el9.x86_64                                                                                                                                       2/10 
  Vérification de       : docker-ce-3:29.2.1-1.el9.x86_64                                                                                                                                                3/10 
  Vérification de       : docker-ce-cli-1:29.2.1-1.el9.x86_64                                                                                                                                            4/10 
  Vérification de       : docker-ce-rootless-extras-29.2.1-1.el9.x86_64                                                                                                                                  5/10 
  Vérification de       : docker-compose-plugin-5.0.2-1.el9.x86_64                                                                                                                                       6/10 
  Vérification de       : container-selinux-4:2.240.0-3.el9_7.noarch                                                                                                                                     7/10 
  Vérification de       : fuse-overlayfs-1.16-1.el9_7.x86_64                                                                                                                                             8/10 
  Vérification de       : passt-0^20250512.g8ec1341-4.el9_7.x86_64                                                                                                                                       9/10 
  Vérification de       : passt-selinux-0^20250512.g8ec1341-4.el9_7.noarch                                                                                                                              10/10 
 
Installé:
  container-selinux-4:2.240.0-3.el9_7.noarch          containerd.io-2.2.1-1.el9.x86_64                          docker-buildx-plugin-0.31.1-1.el9.x86_64          docker-ce-3:29.2.1-1.el9.x86_64            
  docker-ce-cli-1:29.2.1-1.el9.x86_64                 docker-ce-rootless-extras-29.2.1-1.el9.x86_64             docker-compose-plugin-5.0.2-1.el9.x86_64          fuse-overlayfs-1.16-1.el9_7.x86_64         
  passt-0^20250512.g8ec1341-4.el9_7.x86_64            passt-selinux-0^20250512.g8ec1341-4.el9_7.noarch         
 
Terminé !
[root@awx ~]# docker --version
Docker version 29.2.1, build a5c7197

Demarrage et activation du service docker

[root@awx ~]# systemctl start docker
 
[root@awx ~]# systemctl enable docker
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
 
[root@awx ~]# systemctl status docker
● docker.service - Docker Application Container Engine
     Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; preset: disabled)
     Active: active (running) since Sun 2026-02-22 19:12:58 CET; 9s ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
   Main PID: 3506 (dockerd)
      Tasks: 9
     Memory: 24.2M (peak: 27.0M)
        CPU: 127ms
     CGroup: /system.slice/docker.service
             └─3506 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
 
févr. 22 19:12:57 awx.labo.delag.fr dockerd[3506]: time="2026-02-22T19:12:57.108253923+01:00" level=info msg="Deleting nftables IPv6 rules" error="exit status 1"
févr. 22 19:12:57 awx.labo.delag.fr dockerd[3506]: time="2026-02-22T19:12:57.133420184+01:00" level=info msg="Firewalld: created docker-forwarding policy"
févr. 22 19:12:58 awx.labo.delag.fr dockerd[3506]: time="2026-02-22T19:12:58.130998133+01:00" level=info msg="Loading containers: done."
févr. 22 19:12:58 awx.labo.delag.fr dockerd[3506]: time="2026-02-22T19:12:58.142711819+01:00" level=info msg="Docker daemon" commit=6bc6209 containerd-snapshotter=true storage-driver=overlayfs version=29.2>
févr. 22 19:12:58 awx.labo.delag.fr dockerd[3506]: time="2026-02-22T19:12:58.143002071+01:00" level=info msg="Initializing buildkit"
févr. 22 19:12:58 awx.labo.delag.fr dockerd[3506]: time="2026-02-22T19:12:58.150157177+01:00" level=warning msg="git source cannot be enabled: failed to find git binary: exec: \"git\": executable file not >
févr. 22 19:12:58 awx.labo.delag.fr dockerd[3506]: time="2026-02-22T19:12:58.157490528+01:00" level=info msg="Completed buildkit initialization"
févr. 22 19:12:58 awx.labo.delag.fr dockerd[3506]: time="2026-02-22T19:12:58.166329155+01:00" level=info msg="Daemon has completed initialization"
févr. 22 19:12:58 awx.labo.delag.fr dockerd[3506]: time="2026-02-22T19:12:58.166397980+01:00" level=info msg="API listen on /run/docker.sock"
févr. 22 19:12:58 awx.labo.delag.fr systemd[1]: Started Docker Application Container Engine.
[root@awx ~]# 

installation de kubernetes

[root@awx ~]#    curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 55.8M  100 55.8M    0     0  90.8M      0 --:--:-- --:--:-- --:--:-- 90.8M
 
[root@awx ~]# install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

installation de k3d (distribution minimaliste de Kubernetes fournie par Rancher Lab basée sur des machines virtuelles. K3d est un wrapper léger de k3s pour fonctionner avec Docker.)

[root@awx ~]# wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
 
Preparing to install k3d into /usr/local/bin
k3d installed into /usr/local/bin/k3d
Run 'k3d --help' to see what you can do with it.