Fedora 35でPodmanをインストールする

環境情報
OSバージョンの確認
# cat /etc/redhat-release
Fedora release 35 (Thirty Five)

インストールの方法

1.podmanをインストールします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo dnf install -y podman
# sudo dnf install -y podman
# sudo dnf install -y podman

2.podmanパッケージ情報を確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# rpm -qi podman
Name : podman
Epoch : 3
Version : 3.4.2
Release : 1.fc35
Architecture: x86_64
# rpm -qi podman Name : podman Epoch : 3 Version : 3.4.2 Release : 1.fc35 Architecture: x86_64 略
# rpm -qi podman
Name        : podman
Epoch       : 3
Version     : 3.4.2
Release     : 1.fc35
Architecture: x86_64
略

podmanバージョンを確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# podman --version
podman version 3.4.2
# podman --version podman version 3.4.2
# podman --version
podman version 3.4.2

3.現在ホスト、ストレージ統計に関する情報を確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# podman info
host:
arch: amd64
buildahVersion: 1.23.1
cgroupControllers:
- cpuset
- cpu
- io
- memory
- hugetlb
- pids
- misc
cgroupManager: systemd
cgroupVersion: v2
# podman info host: arch: amd64 buildahVersion: 1.23.1 cgroupControllers: - cpuset - cpu - io - memory - hugetlb - pids - misc cgroupManager: systemd cgroupVersion: v2 略
# podman info
host:
  arch: amd64
  buildahVersion: 1.23.1
  cgroupControllers:
  - cpuset
  - cpu
  - io
  - memory
  - hugetlb
  - pids
  - misc
  cgroupManager: systemd
  cgroupVersion: v2
 略

4.イメージをダウンロードします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# podman pull alpine
Resolved "alpine" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/alpine:latest...
Getting image source signatures
Storing signatures
c059bfaa849c4d8e4aecaeb3a10c2d9b3d85f5165c66ad3a4d937758128c4d18
# podman pull alpine Resolved "alpine" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf) Trying to pull docker.io/library/alpine:latest... Getting image source signatures 略 Storing signatures c059bfaa849c4d8e4aecaeb3a10c2d9b3d85f5165c66ad3a4d937758128c4d18
# podman pull alpine
Resolved "alpine" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/alpine:latest...
Getting image source signatures
略
Storing signatures
c059bfaa849c4d8e4aecaeb3a10c2d9b3d85f5165c66ad3a4d937758128c4d18

5.ダウンロードしたイメージリストを確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/library/alpine latest c059bfaa849c 2 weeks ago 5.87 MB
# podman images REPOSITORY TAG IMAGE ID CREATED SIZE docker.io/library/alpine latest c059bfaa849c 2 weeks ago 5.87 MB
# podman images
REPOSITORY                TAG         IMAGE ID      CREATED      SIZE
docker.io/library/alpine  latest      c059bfaa849c  2 weeks ago  5.87 MB

 

Fedora 35

Posted by arkgame