Docker Minecraft Host

I am trying to host Minecraft servers in docker containers on an ec2 instance, and point a different subdomain to each container, for example -> container 1

  • Install docker 1.2 on Amazon Linux AMI release 2014.03
  • docker: 'network' is not a docker command
  • How to get hostPort mapped inside Docker Container in AWS ECS
  • How insert an existing EC2 instance as container host in docker-machine?
  • How to use Docker swarm DNS/Service names in Nginx upstream
  • Setting AWS hazelcast cluster in WSO2 API manager cluster using docker
  • -> container 2 -> container 3

    …and so on.

    If these containers were running a website, I could forward the traffic with Apache, or node-http-proxy, etc. But because these servers are running TCP services, I cannot route the traffic this way.

    Is this possible? And if so, how?

  • Version error in AWS Elastic beanstalk for Multicontainer Docker Configuration
  • how force deleting docker image affects existing containers using it
  • Docker GitHub Automated Build Arguments
  • Failing to see how ambassador pattern enhances modularity / simplicty of container architecture in Docker
  • how can I login to docker hub via Vagrant docker provisioner
  • Hostname for website running inside Docker
  • 2 Solutions collect form web for “Docker Minecraft Host”

    The Minecraft client has supported SRV DNS records for a while now (since 1.3.1 according to google). I suggest you assign your Docker containers a stable set of port mapping with the -p flag, and then create SRV records for each FQDN pointing to the same IP but different ports.

    Google gives several hits on the SRV entry format – this one is from the main MCF site:

    I have four MC servers running on the same physical host with a single IP address, each with a separate friendly entry for players to use in the Minecraft client, so none of my users need to remember a port. It did cause confusion for a couple of my more technical players when they had a connectivity issue, tested with dig/ping, then thought the DNS resolution was broken when there was no A record to be found. Overall, I think that’s a very small downside.

    Doesn’t HAProxy route tcp traffic?

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.