EC2(Amazon Linux2023)の代わりに、とりあえずプライベートではVirtualBoxにAlmalinux9.4を入れてDockerエンジンをインストールしたのですがその時のメモを残します。特に何も問題なく進みました。
バージョン確認
[root@localhost ~]# cat /etc/os-release
NAME="AlmaLinux"
VERSION="9.8 (Olive Jaguar)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.8"
PLATFORM_ID="platform:el9"
PRETTY_NAME="AlmaLinux 9.8 (Olive Jaguar)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:9::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"
ALMALINUX_MANTISBT_PROJECT="AlmaLinux-9"
ALMALINUX_MANTISBT_PROJECT_VERSION="9.8"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.8"
SUPPORT_END=2032-06-01
[root@localhost ~]#
実際の実行コマンド
# 1. 必要なツールをインストール
# DNFの「コア拡張プラグイン集」。これを入れることで、
# 標準の dnf コマンドにはない便利なサブコマンドが使えるようになります。
#
dnf install -y dnf-plugins-core
# 2. Docker公式リポジトリを追加
dnf config-manager --add-repo
# 3. Docker Engineのインストール
dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# 4. Dockerの起動
systemctl start docker
# 5. OS起動時の自動起動有効化
systemctl enable docker
# 6. 動作確認
systemctl status docker
# 7. ファイアウォールの停止
systemctl stop firewalld
# 8. ファイアウォールの自動起動を無効化
systemctl disable firewalld
確認
[root@localhost ~]# docker version
Client: Docker Engine - Community
Version: 29.5.3
API version: 1.54
Go version: go1.26.4
Git commit: d1c06ef
Built: Wed Jun 3 18:04:24 2026
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 29.5.3
API version: 1.54 (minimum version 1.40)
Go version: go1.26.4
Git commit: 285b471
Built: Wed Jun 3 18:00:21 2026
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v2.2.4
GitCommit: 193637f7ee8ae5f5aa5248f49e7baa3e6164966e
runc:
Version: 1.3.5
GitCommit: v1.3.5-0-g488fc13e
docker-init:
Version: 0.19.0
GitCommit: de40ad0
[root@localhost ~]#

