Since the Nginx is using the server_name which includes the regex pattern, we can use the below format to perform the docker login, docker pull/push
Example: if the server_name contains “~(?<repo>.+)\.test.eks.com test.eks.com”, it indicates that the server is configured to use the subdomain docker access method.
Then to perform docker login
Use:
docker login <repositoryname>.test.eks.com
To perform Docker pull/push:
Use:
docker pull <repositoryname>.test.eks.com/image:tag
docker push <repositoryname>.test.eks.com/image:tag
Example: if the server_name contains “~(?<repo>.+)\.test.eks.com test.eks.com”, it indicates that the server is configured to use the subdomain docker access method.
Then to perform docker login
Use:
docker login <repositoryname>.test.eks.com
To perform Docker pull/push:
Use:
docker pull <repositoryname>.test.eks.com/image:tag
docker push <repositoryname>.test.eks.com/image:tag