1.3. Publishing the bootc image to the remote registry


Publish your bootc image to the remote registry so that the image can be used for running the container on another host, or for when you want to install a new operating system with the bootc image layer.

Prerequisites

  • You are logged in to the RHEL 9.4 host where the image was built using the user credentials that have sudo permissions.
  • You have a remote registry such as {quay} for storing and accessing bootc images.
  • You created the Containerfile and built the image.

Procedure

  1. Log in to your remote registry by running the following command:

    REGISTRY_URL=quay.io
    
    $ sudo podman login "${REGISTRY_URL}" 
    1
    1
    Replace REGISTRY_URL with the URL for your registry.
  2. Publish the image by running the following command:

    REGISTRY_IMG=<myorg/mypath>/"${IMAGE_NAME}" 
    1
     
    2
    
    IMAGE_NAME=<microshift-4.17-bootc> 
    3
    
    
    $ sudo podman push localhost/"${IMAGE_NAME}" "${REGISTRY_URL}/${REGISTRY_IMG}"
    1
    Replace <myorg/mypath> with your remote registry organization name and path.
    2
    Replace <microshift-4.17-bootc> with the name of the image you want to publish.

Verification

  1. Run the container using the image you pushed to your registry as described in the "Running the MicroShift bootc container" section.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部