Run a Docker image
-
Verify that Docker is installed
$ docker --version
Docker's version is printed if Docker is installed.
Docker version 19.03.12, build 48a66213fe
The version may vary.
Follow the installation instructions from here, should you need to install Docker.
-
Find the Docker image
Search for "quantum-game" in Docker repository
The Docker image
spkane/quantum-game
is the most popular option. -
Start the Docker image
$ docker run \ --rm \ --name docker-container-demo \ -p 8080:8080 \ spkane/quantum-game:latest
Wait for the image to be downloaded.
Unable to find image 'spkane/quantum-game:latest' locally latest: Pulling from spkane/quantum-game 605ce1bd3f31: Pull complete 17b6aecea465: Pull complete b9c40c340829: Pull complete 59cfa8d7b067: Pull complete 4910a4ac74ee: Pull complete bc233c62e092: Downloading [============================> ] 42.28MB/73.74MB
The Docker image will start automatically once downloaded.
Status: Downloaded newer image for spkane/quantum-game:latest Starting up http-server, serving . Available on: http://127.0.0.1:8080 http://172.17.0.2:8080 Hit CTRL-C to stop the server
This Docker image points to an older version of the game: https://quantumgame.io/.
-
Access the game from the browser: http://localhost:8080
Have fun!!
We were able to start the Quantum Game application without having to worry about anything. This Quantum Game application could have been written in Java, Node, or assembly for all we care. All we need is to have the Docker image and the rest is handled by Docker.