首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Azure Web app for containers在运行多容器应用时是否支持ssh访问?

Azure Web app for containers在运行多容器应用时是否支持ssh访问?
EN

Stack Overflow用户
提问于 2019-12-18 23:28:48
回答 1查看 943关注 0票数 2

我正在运行具有自定义容器图像的Azure Web应用程序(容器)。我遵循了将ssh启用为容器镜像的步骤,当我只运行一个容器时,它工作得很好。但是,当我将应用程序作为一个多容器应用程序(带有docker-compose文件)运行时,我得到了下面的错误。对于其他上下文,这是一个使用nginx和redis的小型python web应用程序,因此需要多个容器。我的自定义映像中只有一个启用了ssh,并且正在运行和暴露端口2222。

这有可能吗?如果不是,那么如果我无法访问容器以获得支持,那么我不确定运行web应用程序多容器的可行性。

代码语言:javascript
运行
复制
az webapp remote-connection create -g GROUPNAME -n APPNAME -p 2222 --verbose                 
Configured default 'GROUPNAME' for arg resource_group_name
remote-connection is deprecated and moving to cli-core, use `webapp create-remote-connection`
Port 2222 is open
Creating a socket on port: 2222
Setting socket options
Binding to socket on local address and port
Finished initialization
Status response message: FAILURE:2222:Unable to connect to WebApp
WARNING - Remote debugging may not be setup properly. Reponse content: FAILURE:2222:Unable to connect to WebApp
SSH is available { username: root, password: Docker! }
Start your favorite client and connect to port 2222

我还尝试了create-remote-connection命令,但得到了类似的结果。

az webapp create-remote-connection -n APPNAME -g GROUPNAME --verbose &

我收到的错误是:

代码语言:javascript
运行
复制
Auto-selecting port: 52661
Finished initialization
Status response message: FAILURE:2222:Unable to connect to WebApp
WARNING - Remote debugging may not be setup properly. Reponse content: FAILURE:2222:Unable to connect to WebApp
Connection is not ready yet, please wait
.
Status response message: FAILURE:2222:Unable to connect to WebApp
WARNING - Remote debugging may not be setup properly. Reponse content: FAILURE:2222:Unable to connect to WebApp
EN

回答 1

Stack Overflow用户

发布于 2019-12-19 02:40:57

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59395254

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档