azure - 将伪 TTY 与 Azure 容器实例结合使用?

标签 azure docker azure-container-instances

是否可以通过 Azure 命令行界面使用 docker --tty 参数启动 Azure 中的 docker 容器?我在文档中没有看到任何内容,我希望能够附加到 tmux session 。

最佳答案

我认为你要添加参数--tty是为了创建一个终止并与容器实例交互。但它不是 Azure 容器实例支持的参数。您可以在CLI命令az container中看到所有支持的参数。 。要创建终止并与容器实例交互,您可以使用 CLI 命令 az container exec要实现它,就像:

az container exec -g MyResourceGroup --name mynginx --container-name nginx --exec-command "/bin/bash"

关于azure - 将伪 TTY 与 Azure 容器实例结合使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59495715/

相关文章:

exception - Azure表存储错误: "Unexpected response code for operation : 99"

c# - 在 Azure Functions 中通过 C# 将文件从一个 DataLake Gen2 复制到另一个 DataLake Gen 2

docker - 无法在 docker 容器上运行 Heroku exec

docker - docker容器中的ActiveMQ Artemis GUI Jolokia访问

docker - 更新话语后如何解决502 Bad Gateway问题?

azure - 在 Azure 容器实例上执行命令时,_callback 中出现错误 "...websocket/_app.py",第 345 行

azure-container-instances - 公共(public) DNS 名称

azure - 使用 Databricks 将 ML 模型从 ADLS 导入到 Azure ML

azure - 如何使用 Azure 数据工厂自动每日复制存储在每日文件夹中的文件

Azure 容器实例仍在转换,请稍后重试