Created MineOS (Minecraft) installation script
This commit is contained in:
parent
48f4353ac4
commit
9bca074990
1 changed files with 23 additions and 0 deletions
23
mineos_install.sh
Executable file
23
mineos_install.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -z "$ZFS_DIR" ]
|
||||
then
|
||||
ZFS_DIR=/data
|
||||
fi
|
||||
|
||||
USER_NAME=mcadmin
|
||||
USER_PASSWORD=rootWord
|
||||
|
||||
sudo docker run -td \
|
||||
--name=mineos \
|
||||
-p 13443:8443 \
|
||||
-p 25565:25565 \
|
||||
-e USER_PASSWORD=${USER_PASSWORD} \
|
||||
-e USER_NAME=${USER_NAME} \
|
||||
-v ${ZFS_DIR}/minecraft:/var/games/minecraft \
|
||||
--restart=unless-stopped \
|
||||
hexparrot/mineos:latest
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue