Install and Play Quake III Arena in Docker Using Gcore Basic

Install and Play Quake III Arena in Docker Using Gcore Basic

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.

Screenshot of the instances section
Figure 1: 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)
Screenshot of the CPU configuration
Figure 2: Set the Flavor parameter

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.”

Screenshot of the created instance
Figure 3: The VM’s status is “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.

Screenshot of the firewall section
Figure 4: 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
Screenshot of the firewall parameters
Figure 5: Set the firewall parameters

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.

Screenshot of the running Quake III Arena
Figure 6: Play Quake III Arena in your browser

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:

Install and Play Quake III Arena in Docker Using Gcore Basic

Subscribe
to our newsletter

Get the latest industry trends, exclusive insights, and Gcore
updates delivered straight to your inbox.