Fork me on GitHub
#aws
<
2016-01-06
>
luposlip11:01:43

OK, got my small clojure-test-project working with docker - yay! But I cannot get it to run on AWS ECS. I’ve pushed the docker image to docker hub, I’ve tried to pull the image on a fresh docker installation and it runs perfectly. But when I try to run it on ECS, and I SSH to the EC2 instance, and run a

docker ps
the only output I get is this:
0814c0db0a0f        amazon/amazon-ecs-agent:latest   "/agent”
Any ideas?

luposlip12:01:00

(my docker image is private, unfortunately can’t share it at the moment, but if any of you have a public test docker clojure image with some web app serving some hello world thing, and can tell how to deploy it to ECS I’d highly appreciate it! simple_smile I can create a new public image, if there is noone to be found anywhere)

ragge13:01:48

can you docker run the image on one of your ecs instances?

luposlip13:01:59

haven’t tried that @ragge! In the meantime I’ve started all over. Will try when I get the instance up again!

ragge13:01:22

you can also do a docker ps -a to show all containers to see if ecs managed to start one

luposlip13:01:47

Now I have a single EC2 instance, configured with the Container Agent (for accessing my private docker image)

luposlip13:01:01

How do I make sure ECS uses that EC2 instance?

luposlip13:01:30

OK, now I just ran my task again, pointing to my private repo.

luposlip13:01:06

still, when logged on to the EC2 instance,

docker ps -a
only shows the amazon agent

luposlip13:01:57

docker images
show my private image, though!

ragge13:01:21

so if you run docker run -it $name-of-your-image

ragge13:01:23

does that work?

luposlip13:01:31

hey, it’s booting! simple_smile

luposlip13:01:49

It just took a while for the image to get downloaded 😄

ragge13:01:57

that's docker for you

luposlip13:01:17

docker ps -a
now shows both the agent and my own image - thanks for your patience @ragge!