admin管理员组文章数量:1392050
I have the following problem:
Trying to deploy an application on ECS. It comprises of multiple ECS services that use Service Connect to talk to each other.
The "AppService" is composed of 2 containers (nginx + php), I normally make this work by adding an app
link to nginx
the problem is that because of ServiceConnect the nginx container fails to start with error message:
CannotCreateContainerError: Error response from daemon: conflicting options: container type network can't be used with links. This would result in undefined behavior
The ECS services are running on an EC2 cluster, so as far as I understand awsvpc
network mode is not a solution, so I think I'm stuck with bridge
mode.
I'm looking for a way to keep using Service Connect and be able to make the nginx
talk to app
at the same time.
Thank you.
I have the following problem:
Trying to deploy an application on ECS. It comprises of multiple ECS services that use Service Connect to talk to each other.
The "AppService" is composed of 2 containers (nginx + php), I normally make this work by adding an app
link to nginx
the problem is that because of ServiceConnect the nginx container fails to start with error message:
CannotCreateContainerError: Error response from daemon: conflicting options: container type network can't be used with links. This would result in undefined behavior
The ECS services are running on an EC2 cluster, so as far as I understand awsvpc
network mode is not a solution, so I think I'm stuck with bridge
mode.
I'm looking for a way to keep using Service Connect and be able to make the nginx
talk to app
at the same time.
Thank you.
Share Improve this question asked Mar 12 at 9:30 Dan F.Dan F. 1,37316 silver badges23 bronze badges1 Answer
Reset to default 0After further documentation, what I was trying to achieve is not possible and I had to switch to NetworkMode: awsvpc
and have the containers talk to each other through localhost
.
本文标签: amazon ecsECS Service Connect container links conflictStack Overflow
版权声明:本文标题:amazon ecs - ECS Service Connect container links conflict - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744761630a2623787.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论