이 콘텐츠는 선택한 언어로 제공되지 않습니다.
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
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.yaml
file with the desired settings.
Procedure
In your Red Hat Quay
config.yaml
file, set theFEATURE_LISTEN_IP_VERSION
field toIPv6
. For example:# ... FEATURE_LISTEN_IP_VERSION: dual-stack # ...
Enter the following command to start the
Quay
registry 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.14.0