centos-streamのDockerコンテナイメージを作成した

centos-streamのDockerコンテナイメージを作成した

2020-12-133 min read

目次

  1. 概要
  2. 背景
  3. centos-stream-コンテナのビルド--インストール
  4. 参考にしたところ

概要

centos-streamのDockerコンテナイメージを作成しました。

背景

CentOS8からCentOS Streamに移行する方法が公式に掲載されていたので、こちらを参考にしてDockerコンテナを作成してみました。内容的にはdnfコマンドを3行実行しているだけです。

Q7: How do I migrate my CentOS Linux 8 installation to CentOS Stream?

Q7: How do I migrate my CentOS Linux 8 installation to CentOS Stream? A: Instructions to convert from the CentOS Linux 8 distribution to CentOS Stream 8 are published at > https://www.centos.org/centos-stream/ and are also below for your convenience.

root@centos-linux# dnf install centos-release-stream

root@centos-linux# dnf swap centos-{linux,stream}-repos

root@centos-linux# dnf distro-sync

root@centos-stream# cat /etc/centos-release CentOS Stream release 8 This will result in some package updates and new packages being installed, which is expected.

centos-stream コンテナのビルド & インストール

次のリポジトリを利用します。

https://github.com/s-yoshiki/docker-centos-stream

git clone https://github.com/s-yoshiki/docker-centos-stream.git
cd docker-centos-stream

次のコマンドでビルドします。

docker-compose up -d --build

イメージの確認。

docker images
# REPOSITORY                   TAG              IMAGE ID       CREATED          SIZE
# s-yoshiki/centos-stream      latest           228b6afad187   21 minutes ago   415MB

Bashの実行

docker run -i -t -h centos-stream s-yoshiki/centos-stream:latest /bin/bash
cat /etc/redhat-release 
# CentOS Stream release 8

参考にしたところ

CentOS Stream

CentOS Streamへのシフトでうろたえないための手引き

CentOS Streamに関してまとめてみました(2020年12月現在)

FAQ - CentOS Project shifts focus to CentOS Stream

Author
githubzennqiita
ただの備忘録です。

※外部送信に関する公表事項