运行 使用 swarm 部署 azure 容器服务后的自定义脚本

Running custom script after azure container service deployment using swarm

我想在 swarm 集群准备好后 运行 自定义脚本。我正在使用以下模板创建 azure 容器服务(基于群)。 https://github.com/Azure/azure-quickstart-templates/tree/875d139c16c9c023dce519e6dd48c707e3473346/101-acs-swarm

我找不到在部署完成后自动运行自定义脚本的方法。

目前,无法在 acs 集群内的虚拟机上 运行 自定义脚本。自动化的唯一解决方法是使用您自己的 swarm 集群和 运行 自定义脚本来安装您的软件。

参考:https://github.com/phagunbaya/azure-templates/tree/master/docker-swarm