尝试使用独立的Swarm和docker-compose版本“2”在不同的虚拟机上运行集群应用程序。覆盖网络已设置。但是想强制某些容器在特定主机上运行。在文档中有以下建议,但使用此参数我根本无法启动任何容器:environment:-"constraint:node==node-1"ERROR:forelasticsearch1Cannotcreatecontainerforserviceelasticsearch1:Unabletofindanodethatsatisfiesthefollowingconditions[availablecontainerslots][node==no