执行到容器实例的Web应用程序中 [英] Exec into a Web App for Container Instance

查看:55
本文介绍了执行到容器实例的Web应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在App Service计划内运行了一个针对容器的Web App服务.它实际上是在本地将数据写入文件并正在运行.有没有一种方法可以执行到容器中并获取文件?我看到没有docker实例在 kudu Environment,以便运行docker exec.

I have an Web App Service for Containers running inside a App Service Plan. It is actually writing data into a file locally and is running. Is there a way to exec into the container and get the file? I see that there is no instance of docker running in the kudu Environment so as to run docker exec.

那么,有没有办法从docker获取文件,即我们可以执行到docker容器中?

So, Is there a way to get files from the docker i.e can we exec into the docker container?


谢谢
Tarun Pothulapati


Thanks,
Tarun Pothulapati

推荐答案

SSH对Linux上的Azure应用服务的支持,以获取有关此主题的更多详细信息.

App Service on Linux provides SSH support into the app container with each of the built-in Docker images, you could leverage this option and see if it helps. For a custom container you need to expose port 2222 for SSH. Refer the document SSH support for Azure App Service on Linux for more details on this topic.


这篇关于执行到容器实例的Web应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆