- First you should update all the software on the Pi to make sure everything is up to date. You can do this by running the following in the SSH terminal you set up on the last page: # sudo apt-get update && sudo apt-get upgrade
- Now we will need to download the install script. We can do this by running the following command:
# curl -fsSL https://get.docker.com -o get-docker.sh
- Next we will need to run this script to install Docker on the the Pi. Run the command: # sudo sh get-docker.sh
- Currently Docker is only available to the root user, meaning we have to run sudo everytime we would like to use it. We can allow the non-root user to use Docker by running:
# sudo usermod -aG docker [username]
which if you used the default pi username should be:
# sudo usermod -aG docker pi - To now test out our new Docker install, run the following command:
docker run hello-world
That is all you need to type to get your Minecraft server installed and running. To connect, you should be able to type raspberrypi.local into the Direct Connect menu and join. Currently it is only available to your local network, but if you are interested in making this server accessible to the rest of the internet, you may look in to port forwarding your server.
That's it, it is now running. To access it, type raspberrypi.local:8080 in to your browser and it should connect and show you the page.