Docker Community Forums

Share and learn in the Docker community.

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

docker
amazonwebservices

(Raj080288) #1

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


(Michael Friis) #2

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/


(Raj080288) #3

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


(Michael Friis) #4

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


(Raj080288) #5

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


(Michael Friis) #6

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


(Michael Davis) #7

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.