centos-streamのDockerコンテナイメージを作成した
目次
概要
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へのシフトでうろたえないための手引き
おすすめの記事
最新の記事
よく読まれている記事
タグから探す
- javascript129
- typescript66
- node.js54
- linux54
- 画像処理48
- amazon-aws47
- アルゴリズム37
- canvas35
- html529
- 画像処理100本ノック27
- php24
- centos24
- python22
- 競技プログラミング21
- mac21
- mysql20
- opencv17
- 雑談16
- 機械学習16
- docker16
- wordpress15
- atcoder14
- apache12
- データベース12
- amazon-s312
- red-hat12
- prisma12
- ubuntu11
- github10
- git10
- react10
- mariadb10
- vue.js9
- aws-cdk9
- css38
- 可視化8
- 小ネタ8
- next.js8
- nestjs8
- amazon-lightsail7
- ブログ6
- cms6
- oracle6
- perl6
- gitlab6
- iam5
- amazon-ec25
- 資格試験5
- aws-amplify5
- curl4