sidhu1504/snake-game:latest is a containerized version of the classic Snake Game, built using Python and Flask. This image is pre-configured with all dependencies, making it easy to deploy and run anywhere using Docker.
To download the latest image from Docker Hub, use:
docker pull sidhu1504/snake-game:latest
Start the container and expose it on port 5000:
docker run -d -p 5000:5000 sidhu1504/snake-game:latest
Once the container is running, open your browser and visit:
http://localhost:5000
Or test with curl:
curl http://localhost:5000
docker ps
docker stop <container-id>
docker rm <container-id>
-p 5000:5000 to another port (e.g., -p 8080:5000).Dockerfile.โ
Ensure Docker is installed and running before executing commands.
โ
Use Docker Compose for multi-container deployments.
โ
If port 5000 is already in use, adjust the port mapping.
Your Snake Game is now ready to play. Have fun and aim for a high score! ๐๐ฅ
Content type
Image
Digest
sha256:39b4de4e0โฆ
Size
48.9 MB
Last updated
over 1 year ago
docker pull sidhu1504/snake-game