How to run docker image in AKS without using docker repository

2/10/2020

I am using Azure Kubernetes Service(AKS) and I am no allowed to use Docker Hub repository for pushing and pulling Images, so please tell me, is there a way to create kubernetes deployments or pods by using tar of image or by pulling image using ssh connection from other server in which I am having Docker engine running.

-- Aditya Dwivedi
azure-aks
azure-kubernetes
docker
kubernetes

1 Answer

2/11/2020

I am assuming that the reason why you are not allowed to use Docker Hub is because of the company policy that wants to keep everything private and contained within Azure.

In that case, I suggest using the Azure's own container registry service named Azure Container Registry which have the following benefit:

  • It works similar to DockerHub in the sense that you can just sign in with username and password, update the image name and you are good to go.
  • It is the solution from Azure which should fit nicely in your Infrastructure design. Please refer to this link for details instructions on how to connect your AKS and ACR.
  • The traffic flow from AKS and ACR is private and not exposed to the Internet.
-- Nguyen Lam Phuc
Source: StackOverflow