Add host failed to find rancher-agent container on EC2

I’m hitting a bit of a roadblock when setting up a host using the EC2 machine driver. It runs through setup ok (as far as I can tell), but when it gets to registering the rancher-agent, it fails.

I’ve tried connecting to the host machine to see what’s happening and when I run
docker ps
I get
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

I’m not sure what do do at this point to get it working. Any direction would be awesome. Thanks!

Ok so it looks like I should have been running sudo docker ps. That gave me what I was looking for. I was able to try restarting the agent and it was having an issue connecting to the rancher host because of a security group issue.

Which security groups did you end up using to fix this issue because I’m faced with the same problem.