【问题标题】:Portainer agent on EC2 machine not deployingEC2 机器上的 Portainer 代理未部署
【发布时间】:2021-05-03 10:10:06
【问题描述】:

我有一台新的 AWS EC2 机器(Ubuntu 20.04 LTS 服务器),它是 Docker 群的主人。我正在尝试部署 Portainer 代理来远程监控我的堆栈。

如果我跟随official guide,发出命令:

docker network create portainer_agent_network
docker service create --name portainer_agent --network portainer_agent_network --publish mode=host,target=9001,published=9001 -e AGENT_CLUSTER_ADDR=tasks.portainer_agent --mode global --mount type=bind,src=//var/run/docker.sock,dst=/var/run/docker.sock --mount type=bind,src=//var/lib/docker/volumes,dst=/var/lib/docker/volumes --mount type=bind,src=/,dst=/host portainer/agent

我得到错误:

Error: No such network: portainer_agent_network

我不是刚刚创建了上述网络吗?我错过了什么?提前致谢!

【问题讨论】:

    标签: docker-swarm portainer


    【解决方案1】:

    看来网络应该是attachable。创建它:

    docker network create --driver=overlay --attachable portainer_agent_network
    

    【讨论】:

      猜你喜欢
      • 2013-03-06
      • 1970-01-01
      • 2023-04-04
      • 2022-10-04
      • 2022-09-26
      • 2022-06-22
      • 2016-02-11
      • 2010-11-06
      • 2022-09-26
      相关资源
      最近更新 更多