Lab 3a: Docker Project - FlameSpyro/Tech-Journal GitHub Wiki
An image that allows managing docker containers within the popular game Minecraft! You can find the source here!
Note! This was done on my centos virtual machine as Minecraft cannot be run through wks or mgmt01. The steps are the same however regardless of OS.
-
Ensure that your machine has an IP address and is set to the bridged mode in the VM settings. From there enter the command
docker pull gaetan/dockercraft
. -
Ensure that the image is downloaded through the use of
docker images
. -
Allow the port through the firewall through the use of
firewall-cmd –permanent -add-port=25565/tcp
. Make sure to reload the firewall! Now run the image and ensure that port 25565 is being used. The command used isrun -d -p 25565:25565 gaetan/dockercraft
. You can verify what ports are set throughfirewall-cmd --list-ports
. -
Before continuing it's important to note that additional information can be added for further customization. This will change the “biome” the world will be set into, the default is grass plains but can be customized as shown here by including factors at the end of the run command. `gaetan/dockercraft '.
-
Now run the image and ensure that port 25565 is being used. The command used is
run -d -p 25565:25565 gaetan/dockercraft
. You can verify if it's all set up throughdocker ps
. -
Install Minecraft, this needs to be installed in a specific version (1.12 will do) so verify what version is being used through the launcher settings.
-
Within the multiplayer menu, enter the IP of the Docker server. The server name does not matter and if the default 25565 port is being used, then you do not need the port at the end.
-
Dockercraft should pop up with the official image and can be jumped into.
-
You will enter the world based on customization settings from step 4. Have Fun!
-
Containers will appear as big blue blocks that can be managed within the world.