Michael Chiang

Setting Up a Minecraft Server Using Docker – Part 1

This is a quick tutorial demonstrating how to set up a local Minecraft server on Docker using Kitematic.

 

Create a Minecraft Server Container

First, if you haven’t yet done so, download and start Kitematic. Once installed and running, create a container from the recommended Minecraft image by clicking the “Create” button.

minecraft1

After the image finishes downloading, you’ll see the home screen for the Minecraft container. Your Minecraft server is now up and running inside a Docker container. Note that we’ve marked the IP and port you can use to connect to your Minecraft server in red (your IP and port may be different from what’s shown).

minecraft2

 

Connect to Minecraft server

Open your Minecraft client, log in with your Minecraft account and click on the “Multiplayer” button.

minecraft3

Click the “Add Server” button to add the Minecraft server you want to connect to.

Fill in the “Server Address” text box with the marked IP and port from Kitematic you saw earlier.

minecraft5

Click on the play button to connect to your Minecraft server and enjoy!

 

Change map using Docker volume

Open the “data” folder from Kitematic (You’ll need to “Enable all volumes to edit files via Finder”). We use Docker

Volume to map the folder from the Minecraft Docker container onto your computer.

minecraft6

The Finder will open, allowing you to replace your current map with the new one you desire.

minecraft7

Restart your container by clicking the “Restart” button.

minecraft8

Go back to your Minecraft client and join your server. The new map should load.

 

Next Steps – Deploying Your Minecraft Server

 

In our next post, we will discuss how you can deploy the Minecraft server created through Kitematic to the cloud so you can enjoy the game with your family and friends!

 


 

Learn More about Docker

 

, ,

Michael Chiang

Setting Up a Minecraft Server Using Docker – Part 1


4 Responses to “Setting Up a Minecraft Server Using Docker – Part 1”

  1. Mark

    Nice tutorial. I really enjoyed it.

    Reply
  2. Kyle

    Very detailed tutorial, thank you! I’ll be waiting for your next post.

    Reply
  3. Hendrik

    I really liked your tutorial but i wonder if there is a way to make the server LAN so i can host it on my Computer und play on my laptop?

    Reply

Leave a Reply to Lance Kind

Click here to cancel reply.

Get the Latest Docker News by Email

Docker Weekly is a newsletter with the latest content on Docker and the agenda for the upcoming weeks.