0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Podman(Docker)コンテナのRockyLinux日本語環境構築

Posted at

PodmanでOSイメージの取得

podman pull rockylinux:9

イメージからコンテナの起動

podman run --name=Template -ti docker.io/library/rockylinux:9 /bin/bash

各種パッケージのインストール

dnf install systemd
dnf install langpacks-ja
dnf install glibc-langpack-ja
dnf install NetworkManager
dnf install zip unzip
dnf install wget
dnf install cronie

コンテナを抜けて、イメージを作成、/sbin/initで起動を行う

podman commit <コンテナ名 or コンテナID> <イメージ名>
podman rm <コンテナ名 or コンテナID>
podman run --name=Template -tid <イメージ名 or イメージID> /sbin/init

日本語設定

localectl set-locale LANG=ja_JP.UTF-8
timedatectl set-timezone Asia/Tokyo
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?