73 lines
2.3 KiB
Markdown
73 lines
2.3 KiB
Markdown
---
|
|
advisory: kitematic
|
|
description: Tutorial demonstrating the setup of a Minecraft server using Docker and Kitematic
|
|
keywords: docker, documentation, about, technology, kitematic, gui, minecraft, tutorial
|
|
title: 'Kitematic tutorial: Set up a Minecraft server'
|
|
---
|
|
|
|
This is a quick tutorial demonstrating how to set up a local Minecraft server
|
|
using Kitematic and Docker.
|
|
|
|
### Create Minecraft server container
|
|
|
|
First, if you haven't yet done so, [download and start Kitematic](index.md).
|
|
Once installed and running, the app should look like this:
|
|
|
|
Create a container from the recommended Minecraft image by clicking the "Create"
|
|
button.
|
|
|
|
![create Minecraft container](images/minecraft-create.png)
|
|
|
|
After the image finishes downloading, you see the home screen for the
|
|
Minecraft container. Your Minecraft server is now up and running inside a Docker
|
|
container. 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).
|
|
|
|
![Minecraft server port and IP info](images/minecraft-port.png)
|
|
|
|
### Connect to Minecraft server
|
|
|
|
Open your Minecraft client, log in with your Minecraft account and click on the
|
|
"Multiplayer" button.
|
|
|
|
![Minecraft login screen](images/minecraft-login.png)
|
|
|
|
Click the "Add Server" button to add the Minecraft server you want to connect
|
|
to.
|
|
|
|
![Add server](images/minecraft-login.png)
|
|
|
|
Fill in the "Server Address" text box with the marked IP and port from Kitematic
|
|
you saw earlier.
|
|
|
|
![Minecraft server address](images/minecraft-server-address.png)
|
|
|
|
Click on the play button to connect to your Minecraft server and enjoy!
|
|
|
|
|
|
### Change map using Docker volume
|
|
|
|
Open the "data" folder from Kitematic (Select "Enable all volumes to edit
|
|
files via Finder"). We use Docker Volume to map the folder from the Minecraft
|
|
Docker container onto your computer.
|
|
|
|
![Minecraft data volume](images/minecraft-data-volume.png)
|
|
|
|
The Finder opens, allowing you to replace your current map with the new one
|
|
you desire.
|
|
|
|
![Minecraft maps](images/minecraft-map.png)
|
|
|
|
Restart your container by clicking the "Restart" button.
|
|
|
|
![Restart Minecraft container](images/minecraft-restart.png)
|
|
|
|
Go back to your Minecraft client and join your server. The new map should load.
|
|
|
|
|
|
## Next steps
|
|
|
|
For an example using Kitematic to run Nginx, take a look at the
|
|
[Nginx web server](./nginx-web-server.md) page.
|