我正在运行具有自定义容器图像的Azure Web应用程序(容器)。我遵循了将ssh启用为容器镜像的步骤,当我只运行一个容器时,它工作得很好。但是,当我将应用程序作为一个多容器应用程序(带有docker-compose文件)运行时,我得到了下面的错误。对于其他上下文,这是一个使用nginx和redis的小型python web应用程序,因此需要多个容器。我的自定义映像中只有一个启用了ssh,并且正在运行和暴露端口2222。
这有可能吗?如果不是,那么如果我无法访问容器以获得支持,那么我不确定运行web应用程序多容器的可行性。
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 &
我收到的错误是:
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发布于 2019-12-19 02:40:57
https://stackoverflow.com/questions/59395254
复制相似问题