In this tutorial, weâll explore how to install Quake III Arena, a popular first-person shooter, in Docker, and then play it in your browser. We will first deploy a Gcore Basic instance as our sample server, a low-cost virtual machine that saves you time and effortâyou can have a server ready in just five minutes! Next, weâll install Docker on this server and run Quake III Arena.
What Is Docker?
Docker is a platform that makes it easy for developers to build, deploy, and run applications in containers. A container is a lightweight executable package that consists of everything you need to run an application, including code, libraries, and dependencies.
In our case, the application we want to run is Quake III Arena. Docker can be used to run legacy applications such as this in a modern environment.
How to Install and Run Quake III Arena
Step 1. Create a Virtual Machine
First, we want to run Quake III Arena on a Gcore Basics instance. Hereâs how to do that:
1. Log in to your Gcore Cloud account. If you donât have one yet, sign up.
2. Go to Cloud and select Projects.
3. ĐĄlick Create project; fill in the Name field. Projects are groups of separate Cloud resources, and these groups are isolated from each other. The isolation gives you the ability to set user rights for each project.
4. In your project, click Create Instance.
5. Select the region closest to your location from the available options: Amsterdam (EU,) Frankfurt (EU,) Manassas (US,) Tokyo (Japan,) or Hong Kong (China.)
6. In Image, select Distributions and set the following parameters:
- OS: Ubuntu 22.04
- Type: Basic VM
- Flavor: 1 vCPU/2GB RAM/25GB SSD
- Network: set by default with public IP.
- Firewall: select âDefaultâ with the âAdd application ports to firewall groupâ flag
- SSH Key: choose your public SSH key or generate a new one.
- Name: myquakeserver (or whatever you want)
7. Now that youâve finished the set up, click Create Instance. The virtual machine will appear in the âInstancesâ list. Wait until the virtual machineâs âCreatingâ status changes to âPower on.â
Step 2. Connect to the Server and Install Docker
Before installing Docker, make sure that the Ubuntu OS is up to date.
1. Log in to the server by SSH using the following command:
ssh ubuntu@<your_public_ip_address>
For example:
ssh ubuntu@79.133.126.56
2. Update Ubuntu:
ubuntu@myquakeserver:~$ sudo su root@myquakeserver:/home/ubuntu# apt update
3. Install Docker:
root@myquakeserver:/home/ubuntu# apt install docker.io
Step 3. Pull the Quake III Arena Image on your Local Machine
Now that youâve installed Docker on your server, you can pull the Quake III Arena image from the Docker Hub. Open your terminal and run the following command:
root@myquakeserver:/home/ubuntu# docker pull treyyoder/quakejs:latest
This command will pull the Quake III Arena image from the Docker Hub and store it on your local machine.
Step 4. Run Quake III Arena in Docker
To run Quake III Arena in Docker, start a new container using the Quake III Arena image. To do so, simply execute the following command:
root@myquakeserver:/home/ubuntu# docker run -d-name quakejs -e HTTP_PORT=8080 -p 8080:80 -p 27960:27960 treyyoder/quakejs:latest
Youâll now see the server logs in your terminal.
Step 5. Add the Rule 8080 in the Firewall
The Quake III Arena server uses port 8080 as a default for HTTP connections. Add the inbound and outbound rules for this port to the firewall:
1. Go to the Networking â Firewalls and select the default firewall group.
2. Click on the default firewall group and set the following parameters:
- Type: Custom
- Protocol: TCP
- Port: 8080
- Sources: All IPv4
3. In the lower-left corner of the âFirewallsâ section, click Save.
Note: You also can configure this rule using one command in CLI. (This works for any virtual machine, not only for Gcoreâs.) Hereâs the command:
sudo ufw allow 8080/TCP
Step 6. Play Quake III Arena in Your Browser
To play Quake III Arena, open a web browser on your device and enter the public IP address of your server that you obtained in Step 1, as well as the 8080 port:
http://<your_public_ip_address>:8080
For example:
http://79.133.126.56:8080
This will open the game in your browser, and you can start playing.
Have fun playing Quake III Arena!
Conclusion
In this tutorial, we explained how to install Quake III Arena in Docker and play it in your browser. Check out our other articles dedicated to setting up different types of software on Gcore Cloud instances: