I want shell access of container registry which is used in kubernetes service.

Trouble1 21 Reputation points
2020-09-29T09:18:22.003+00:00

I have created an simple application using kubernetes service but I also want a shell access where my application is deployed (eg, container registry)

In app service we have that option by using Win-RM

How can I get shell access of docker in kubernetes service?

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
374 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,821 questions
{count} votes

2 answers

Sort by: Most helpful
  1. prmanhas-MSFT 17,886 Reputation points Microsoft Employee
    2020-09-29T10:21:44.94+00:00

    @Trouble1 Thank you for your query!!!

    You can make use of kubectl exec to get a shell to a running container.

    The functionality might not be similar to Win RM but might be helpful in your use case.

    You need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster.

    You can refer to this article as well for more information.

    Hope it helps!!!

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics

    0 comments No comments

  2. Sam Cogan 10,077 Reputation points MVP
    2020-09-29T12:52:36.923+00:00

    The container registry is just a store for your image, it is not an execution environment. There is no shell access to this, as nothing is running.

    Where you host your running containers, such as AKS, Web App etc. does have the ability to use a shell.

    0 comments No comments