question

Trouble1-9313 avatar image
0 Votes"
Trouble1-9313 asked prmanhas-MSFT commented

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

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-kubernetes-serviceazure-container-registry
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Trouble1-9313 Any update on the issue?

If the suggested response helped you resolve your issue, do click on "Mark as Answer" and "Up-Vote" for the answer that helped you for benefit of the community.

Thanks.



0 Votes 0 ·
prmanhas-MSFT avatar image
0 Votes"
prmanhas-MSFT answered

@Trouble1-9313 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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sam-Cogan avatar image
0 Votes"
Sam-Cogan answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.