Dockerized Skyfactory4 Server (modded Minecraft)
10K+
25565Initially run the following command to accept EULA terms:
docker run --rm \
-v skyfactory4:/var/lib/skyfactory4 \
mikenoethiger/skyfactory4 ash -c 'echo "eula=true" > eula.txt'
This will create the docker volume where all the skyfactory data will be persisted and then write eula=true to eula.txt which is the whole eula-terms-accepting magic.
The container is automatically removed after the command terminates (ensured by --rm).
Now run the server as a container:
docker run -dit \
-p 25565:25565 \
-v skyfactory4:/var/lib/skyfactory4 \
--restart always \
--name skyfactory4 \
mikenoethiger/skyfactory4
Run docker attach skyfactory4 in order to use the interactive minecraft shell. Hit CRTL+P+Q to exit attached mode.
Run docker volume inspect skyfactory4 in order to get the volume path on the host system, where all the world data and so forth is stored.
install.shsettings.shServerStart.sh to start the server (will initially fail)eula=true in eula.txtServerStart.sh again and wait until server startethelp to get a list of available commands.stop to save data and stop server.Skyfactory automatically creates backups and stores them in the backups folder. My common routine to load a backup is as follows (make sure to cd to the skyfactory4 volume beforehand):
mkdir archive
mv world archive
mkdir world
cp backups/world/Backup--world--2020-04-11--22-18.zip world
cd world
unzip Backup--world--2020-04-11--22-18.zip
rm Backup--world--2020-04-11--22-18.zip
This routine is summarized in the loadbackup.sh script provided in this repository. Usage example:
./loadbackup.sh Backup--world--2020-04-11--22-18.zip
Errow shown:
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option PermSize; support was removed in 8.0
Solution: Go to Edit Profile and change Java Path to jdk8.
Content type
Image
Digest
Size
334.9 MB
Last updated
over 6 years ago
docker pull mikenoethiger/skyfactory4