Run docker containers on a domain name than a local IP address

I want to run a docker container on my domain in either Digital Ocean or AWS so when i go to www.example-website.co.uk my docker container will be running in there rather than going to IP address 127.0.0.1 for example.

I appreciate any help with this as Docker is hard to get going.

Thanks,

Raj

I’d recommend taking a look at Docker Cloud - it’s already available and is a simpler way to get started: https://cloud.docker.com/

Hi Friism. Thanks for your reply.

I have tried to deploy apps with docker cloud but the url always has docker.io in it, i want my container to sit specifically in mywebsite.com rather than 127.0.0.docker.cloud.io for example

You can point a CNAME DNS record to your Docker Cloud endpoint.

hi, any examples? CNAME DNS from my domain right? sorry for the stupid questions, I’m new to all this.

Amazon has related documentation here: http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/using-domain-names-with-elb.html

Yes, in AWS, the Elastic Load Balancer is the way to go. In my case, I associated the Load Balancer with my domain, and the load balancer has just one EC2 instance associated with it - the one that’s running the containers.