docker run -it -d -p 25565:25565 --name mc_server --volume $(pwd)/data:/data:rw akopper/minecraft_server:latest
This will
mc_serverdata in your current working directoryTo view the logs execute docker logs -f mc_server
docker-compose.yml to your target directorylatest.docker-compose up -d (-d will start the container detached)Default values in parenthesis
Content type
Image
Digest
Size
273.7 MB
Last updated
almost 5 years ago
docker pull akopper/minecraft_server