Is it possible to SSH into FARGATE managed container instances?

后端 未结 3 1004
孤街浪徒
孤街浪徒 2020-12-17 07:47

I use to connect to EC2 container instances following this steps, https://docs.aws.amazon.com/AmazonECS/latest/developerguide/instance-connect.html wondering how I can conne

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-17 08:05

    Looking on that issue on github https://github.com/aws/amazon-ecs-cli/issues/143 I think it's not possible to make docker exec from remote host into container on ECS Fargate. You can try to run ssh daemon and your main process in one container using e.g. systemd (https://docs.docker.com/config/containers/multi-service_container/) and connect to your container using SSH but generally it's not good idea in containers world.

提交回复
热议问题