- Basic knowledge of Docker (not needed, but recommended)
- Docker
LinuxThis should now work on Linux, Windows (Docker Desktop can utilize WSL), and MacOS
- Clone the repo with
git clone https://github.com/slashtechno/docker-minecraft/
- Change to the directory with
cd docker-minecraft
. - Install dependencies with
pip install -r requirements.txt
(pip3
may need to be used instead) - Run the script with
python3 server-manager.py
(you may need to usepython
instead ofpython3
, andsudo
may be required)
Done!
- Migrate from
os.system
tosubprocess.run
- Allow port changes (save current container as an image, and run image with new ports)
- Use
pathlib
library - Possibly migrate to the Docker API or Python on Whales
- Check names of all existing containers and images when a new container or image is being created
- Instead of relying on container and image names, rely on the IDs (could be possible without the Docker API)
- Allow name changes to containers and images
- Switch to
docker export