이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 7. Configuring the Podman CNI to use IPv6
In some cases, you might want to run a local instance of Red Hat Quay to use IPv6. This setup is common for development or testing purposes.
By default, the Podman network for a root user does not use IPv6, and instead defaults to use IPv4. You can configure the Podman Container Network Interface (CNI) to use both IPv4 and IPv6, which allows for a local instance of Red Hat Quay using IPv6.
Additional resources
7.1. Creating a dual-stack container network 링크 복사링크가 클립보드에 복사되었습니다!
Use the following procedure to create a new container network that is dual-stack.
Procedure
Unless there is a requirement that the default container network use both IPv4 and IPv6, it is suggested that a new container network is created that is dual-stack. As a root user, create a new container network that is dual-stack by running the following command:
podman network create ip-dual-stack --ipv6
# podman network create ip-dual-stack --ipv6Copy to Clipboard Copied! Toggle word wrap Toggle overflow With this command, new containers use this network are a natively dual-stack.
7.2. Deploying a local instance of Red Hat Quay in IPv6 링크 복사링크가 클립보드에 복사되었습니다!
After you have created a new dual-stack container network, you can deploy a local instance of Red Hat Quay.
Prerequisites
-
You have configured Redis, your PostgreSQL database, local image storage, and creating a
config.yamlfile with the desired settings.
Procedure
In your Red Hat Quay
config.yamlfile, set theFEATURE_LISTEN_IP_VERSIONfield toIPv6. For example:# ... FEATURE_LISTEN_IP_VERSION: dual-stack # ...
# ... FEATURE_LISTEN_IP_VERSION: dual-stack # ...Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the following command to start the
Quayregistry container, specifying the appropriate volumes for configuration data and local storage for image data. Note that if you are using dual-stack, you must specify explicit IPv6 port mapping when starting the container.sudo podman run -d --rm -p "[::]:80:8080" -p "[::]:443:8443" \ --name=quay \ -v $QUAY/config:/conf/stack:Z \ -v $QUAY/storage:/datastorage:Z \ registry.redhat.io/quay/quay-rhel8:v3.13.8
$ sudo podman run -d --rm -p "[::]:80:8080" -p "[::]:443:8443" \ --name=quay \ -v $QUAY/config:/conf/stack:Z \ -v $QUAY/storage:/datastorage:Z \ registry.redhat.io/quay/quay-rhel8:v3.13.8Copy to Clipboard Copied! Toggle word wrap Toggle overflow