Question

I am a new user of docker.io.

I want deploy multiple docker.io containers in one linode host, for example:

  • blog.xi3.io <--> docker container #1 with a blog app
  • data.xi3.io <--> docker container #2 with a data app
  • ....
  • xxx.xi3.io <--> docker container #n with a xxx app
Was it helpful?

Solution

Related to port redirect to docker containers by hostname. In order to accomplish that you'll need to have each container expose it's port 80 (or whichever port an app server is listening on) to the host and then run some sort of a reverse proxy on the host machine to route the traffic properly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top