I spent a couple of frustrating hours this evening trying to figure out an easy way to deploy a Docker container on AWS. I tried out the EC2 Container Service and got lost in a sea of Clusters, Tasks, and Services. I couldn’t connect to the EC2 instance where my container supposedly lived.
I tried Elastic Beanstalk and gave up in exasperation. When you create a new Docker environment, there’s no way to pull an existing image from an external repo that I could see. We have some tools for deploying a Docker image to Elastic Beanstalk, but they were so cryptic that I didn’t want to pursue that.
Eventually I went old school. I created a new EC2 instance, SSHed in, installed Docker, logged into the Docker repository, pulled the image, and started the container. Admittedly, redeployment will be a pain and I don’t get autoscaling or other AWS goodness, but I got the container working in 10 minutes.