I am trying to set up EC2 Container Service. I use the following command: aws ecr get-login --region eu-west-1 which gives me a docker login which looks something like this:

docker login -u AWS -p **VERY LONG KEY** -e none https://MYID.dkr.ecr.eu-west-1.amazonaws.com

When I run this I get the following errors:

Warning: '-e' is deprecated, it will be removed soon. See usage.
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

I am following their "FirstRun" tutorial which can be found here.

What am I doing wrong?

For reference: I have set up a IAM user and added the keys to in the aws configure command.

  • I got it working now. I belive the network I was on had some sort of firewall. – Automatico Jul 14 '16 at 14:09
  • Good to note is also that you just got a warning (not an error) about a deprecated argument (-e) to the docker login command. Omit the "-e" arg and you shouldn't get the warning. – Bazze Jul 17 '16 at 17:33

This probably means that your Docker daemon is not running on your Container instance.

You can do so by running the below command (ssh to your instance beforehand):

sudo docker -d &

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.