Red Hat Training

A Red Hat training course is available for RHEL 8

3.4. レジストリーからのイメージの取得 (プル)

podman pull コマンドを使用して、ローカルシステムにイメージを取得します。

前提条件

  • container-tools モジュールがインストールされている。

手順

  1. registry.redhat.io レジストリーにログインします。

    $ podman login registry.redhat.io
    Username: <username>
    Password: <password>
    Login Succeeded!
  2. registry.redhat.io/ubi8/ubi コンテナーイメージをプルします。

    $ podman pull registry.redhat.io/ubi8/ubi

検証手順

  • ローカルシステムにプルしたすべてのイメージをリスト表示します。

    $ podman images
    REPOSITORY                           TAG     IMAGE ID      CREATED      SIZE
    registry.redhat.io/ubi8/ubi          latest  3269c37eae33  7 weeks ago  208 MB

関連情報

  • podman-pull の man ページ