A dependable, reusable template for building vanilla minecraft and feed-the-beast server docker images.
Begin by cloning my repository:
git clone git@github.com:SparksD2145/docker-minecraft-ftb-adaptable.git
Download the latest minecraft_server.jar and rename it to minecraft_server.jar
. Copy and paste the server jar into the server-files directory. Then, build your image:
sudo docker build -t my_minecraft_image .
Once the image is built, you can run it with:
sudo docker run -it --name my_minecraft_server --expose 25565 -env MC_EULA=true my_minecraft_image
With this command, the server will start and you will be dropped into the server's interactive console. Notice that you are accepting the minecraft EULA while starting your server.
Creating an image for feed-the-beast is much the same. Begin by cloning my repository:
git clone git@github.com:SparksD2145/docker-minecraft-ftb-adaptable.git
Download your desired FeedTheBeast Server zip file. Extract the zip file's contents into the server-files directory. Then, build your image:
sudo docker build -t my_ftb_image .
Once the image is built, you can run it with:
sudo docker run -it --name my_ftb_server --expose 25565 -env MC_EULA=true my_ftb_image
With this command, the server will start and you will be dropped into the server's interactive console. Again, notice that you are accepting the minecraft EULA while starting your server.
You are free to adopt and expand upon my code per the included MIT license.