breakout-custom/run-docker.sh
2024-09-06 19:53:24 -04:00

8 lines
No EOL
300 B
Bash

#!/bin/bash
# Stop and remove existing container with the same name
docker stop "$(docker ps -aq --filter "name=breakout-game")"
docker rm "$(docker ps -aq --filter "name=breakout-game")"
# Run the container with the specified tag and name
docker run -p 9000:9000 --name breakout-game breakout-game