Get NGINX Ingress Controller from the F5 Registry
Learn how to pull an F5 NGINX Plus Ingress Controller image from the official F5 Docker registry and upload it to your private registry.
The F5 Registry images include versions with NGINX App Protect WAF and NGINX App Protect DoS.
This guide covers the prerequisites, image tagging, and troubleshooting steps.
Before you begin
Before you start, you’ll need these installed on your machine:
- Docker v18.09 or higher.
- An NGINX Ingress Controller subscription. Download both the certificate (nginx-repo.crt) and key (nginx-repo.key) from the MyF5 Customer Portal. Keep in mind that an NGINX Plus certificate and key won’t work for for the steps in this guide.
Set up Docker for F5 Container Registry
Start by setting up Docker to communicate with the F5 Container Registry located at private-registry.nginx.com
. If you’re using Linux, follow these steps to create a directory and add your certificate and key:
mkdir -p /etc/docker/certs.d/private-registry.nginx.com
cp <path-to-your-nginx-repo.crt> /etc/docker/certs.d/private-registry.nginx.com/client.cert
cp <path-to-your-nginx-repo.key> /etc/docker/certs.d/private-registry.nginx.com/client.key
The steps provided are for Linux. For Mac or Windows, consult the Docker for Mac or Docker for Windows documentation. For more details on Docker Engine security, you can refer to the Docker Engine Security documentation.
Pull the image
Next, pull the image you need from private-registry.nginx.com
. To find the correct image, consult the Tech Specs guide.
To pull an image, follow these steps. Replace <version-tag>
with the specific version you need, for example, 4.0.0
.
-
For NGINX Plus Ingress Controller, run:
docker pull private-registry.nginx.com/nginx-ic/nginx-plus-ingress:<version-tag>
-
For NGINX Plus Ingress Controller with NGINX App Protect WAF, run:
docker pull private-registry.nginx.com/nginx-ic-nap/nginx-plus-ingress:<version-tag>
-
For NGINX Plus Ingress Controller with NGINX App Protect WAF v5, run:
docker pull private-registry.nginx.com/nginx-ic-nap-v5/nginx-plus-ingress:<version-tag>
docker pull private-registry.nginx.com/nap/waf-config-mgr:<waf-version-tag>
docker pull private-registry.nginx.com/nap/waf-enforcer:<waf-version-tag>
-
For NGINX Plus Ingress Controller with NGINX App Protect DoS, run:
docker pull private-registry.nginx.com/nginx-ic-dos/nginx-plus-ingress:<version-tag>
-
For NGINX Plus Ingress Controller with NGINX App Protect WAF and NGINX App Protect DoS, run:
docker pull private-registry.nginx.com/nginx-ic-nap-dos/nginx-plus-ingress:<version-tag>
You can use the Docker registry API to list the available image tags by running the following commands. Replace <path-to-client.key>
with the location of your client key and <path-to-client.cert>
with the location of your client certificate. The jq
command is used to format the JSON output for easier reading.
$ curl https://private-registry.nginx.com/v2/nginx-ic/nginx-plus-ingress/tags/list --key <path-to-client.key> --cert <path-to-client.cert> | jq
{
"name": "nginx-ic/nginx-plus-ingress",
"tags": [
"4.0.0-alpine",
"4.0.0-alpine-fips",
"4.0.0-ubi",
"4.0.0"
]
}
$ curl https://private-registry.nginx.com/v2/nginx-ic-nap/nginx-plus-ingress/tags/list --key <path-to-client.key> --cert <path-to-client.cert> | jq
{
"name": "nginx-ic-nap/nginx-plus-ingress",
"tags": [
"4.0.0-alpine-fips",
"4.0.0-ubi",
"4.0.0"
]
}
$ curl https://private-registry.nginx.com/v2/nginx-ic-dos/nginx-plus-ingress/tags/list --key <path-to-client.key> --cert <path-to-client.cert> | jq
{
"name": "nginx-ic-dos/nginx-plus-ingress",
"tags": [
"4.0.0-ubi",
"4.0.0"
]
}
Push to your private registry
After pulling the image, tag it and upload it to your private registry.
-
Log in to your private registry:
docker login <my-docker-registry>
-
Tag and push the image. Replace
<my-docker-registry>
with your registry’s path and<version-tag>
with the version you’re using, for example4.0.0
:-
For NGINX Plus Ingress Controller, run:
docker tag private-registry.nginx.com/nginx-ic/nginx-plus-ingress:<version-tag> <my-docker-registry>/nginx-ic/nginx-plus-ingress:<version-tag> docker push <my-docker-registry>/nginx-ic/nginx-plus-ingress:<version-tag>
-
For NGINX Controller with NGINX App Protect WAF, run:
docker tag private-registry.nginx.com/nginx-ic-nap/nginx-plus-ingress:<version-tag> <my-docker-registry>/nginx-ic-nap/nginx-plus-ingress:<version-tag> docker push <my-docker-registry>/nginx-ic-nap/nginx-plus-ingress:<version-tag>
- For NGINX Controller with NGINX App Protect WAF v5, run:
docker tag private-registry.nginx.com/nginx-ic-nap-v5/nginx-plus-ingress:<version-tag> <my-docker-registry>/nginx-ic-nap/nginx-plus-ingress:<version-tag> docker push <my-docker-registry>/nginx-ic-nap/nginx-plus-ingress:<version-tag>
docker tag private-registry.nginx.com/nap/waf-config-mgr:<waf-version-tag> <my-docker-registry>/nap/waf-config-mgr:<waf-version-tag> docker push <my-docker-registry>/nap/waf-config-mgr:<waf-version-tag>
docker tag private-registry.nginx.com/nap/waf-enforcer:<waf-version-tag> <my-docker-registry>/nap/waf-enforcer:<waf-version-tag> docker push <my-docker-registry>/nap/waf-enforcer:<waf-version-tag>
-
For NGINX Controller with NGINX App Protect DoS, run:
docker tag private-registry.nginx.com/nginx-ic-dos/nginx-plus-ingress:<version-tag> <my-docker-registry>/nginx-ic-dos/nginx-plus-ingress:<version-tag> docker push <my-docker-registry>/nginx-ic-dos/nginx-plus-ingress:<version-tag>
-
Troubleshooting
If you encounter issues while following this guide, here are solutions to common problems:
-
Certificate errors
- Likely Cause: Incorrect certificate or key location, or using an NGINX Plus certificate.
- Solution: Verify you have the correct NGINX Ingress Controller certificate and key. Place them in the correct directory and ensure the certificate has a .cert extension.
-
Docker version compatibility
- Likely Cause: Outdated Docker version.
- Solution: Make sure you’re running Docker v18.09 or higher. Upgrade if necessary.
-
Can’t pull the image
- Likely Cause: Mismatched image name or tag.
- Solution: Double-check the image name and tag against the Tech Specs guide.
-
Failed to push to private registry
- Likely Cause: Not logged into your private registry or incorrect image tagging.
- Solution: Verify login status and correct image tagging before pushing. Consult the Docker documentation for more details.
Alternative installation options
You can also get the NGINX Ingress Controller image using the following alternate methods:
- Get the NGINX Ingress Controller image with JWT.
- Build NGINX Ingress Controller using the source code from the GitHub repository and your NGINX Plus subscription certificate and key.
- For NGINX Ingress Controller using NGINX OSS, you can pull the nginx/nginx-ingress image from DockerHub.