AI & Machine Learning Products
Edge Network
Platform as a Service
Virtual & Dedicated Servers
Video Streaming Platform
Cloud for Mobile
Custom Services Products
Media & Entertainment
Financial Services
IT / Technology
Retail
Education
Web Acceleration
Video Streaming
Security & Protection
Cloud
Availability
Partnership Solutions
Corporate Solutions
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.
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.
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:
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.”
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
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.
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.
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:
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
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!
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:
This article discusses how GPUs are shaping a new reality in the hottest subset of AI training: deep learning. We’ll…
In this article, we explore how Intelligence Processing Units (IPUs) and graphics processing units (GPUs) drive the rapid evolution of…
Navigating the maze of hosting solutions can be a daunting task. Assessing the differences and deciding which best fits your…