'SSH disconnected after start docker on AWS

I installed docker on aws according to thes docs

https://docs.docker.com/engine/install/centos/

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html

The ssh disconnected when i start the docker

sudo service docker start

And i can`t connect to aws use ssh

I am stuck,appreciate for any answer

linux version

Linux version 3.10.0-862.14.4.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Wed Sep 26 15:12:11 UTC 2018


Solution 1:[1]

Are you using t2.micro/nano EC2 in AWS? If yes, then please use t2.small or bigger EC2 instances

Hope this helps.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1