mkdir docker cd docker mkdir containers cd containers mkdir minecraft_vanilla cd minecraft_vanilla "FROM java:8\r\nRUN apt-get update\r\nEXPOSE 25565\r\nCMD bash /var/start.sh" > Dockerfile "sudo docker build -t mc_img ." > docker_build "sudo docker run -d -e EULA=TRUE -p 8080:25565 -v /pathToYourMinecraftFolder/data:/var mc_img" > docker_run mkdir data cd data "#!/bin/bash\r\necho \"# Generated via Docker on $(date)\" > eula.txt\r\necho \"eula=$EULA\" >> eula.txt\r\necho \"level-name=/var/world\" >> server.properties\r\njava -Xmx2G -Xms2G -jar /var/minecraft_server.1.9.2.jar nogui" > start.sh "wget https://s3.amazonaws.com/Minecraft.Download/versions/1.9.2/minecraft_server.1.9.2.jar" > update.sh