How to Install Docker and Run Containers on a Hosteons VPS

Docker is one of the most popular tools for deploying and managing applications in isolated environments called containers. With a Hosteons VPS, you have full root access and KVM virtualization โ€” making it perfect for running Docker!

In this guide, weโ€™ll show you how to install Docker on a VPS (Ubuntu/CentOS/AlmaLinux) and run your first container.


โœ… Prerequisites

  • A Hosteons VPS with root access
  • OS: Ubuntu 20.04/22.04 or CentOS 7/8 / AlmaLinux 8/9
  • Updated system packages

๐Ÿš€ Step 1: Update Your VPS

Ubuntu/Debian:

sudo apt update && sudo apt upgrade -y

CentOS/AlmaLinux:

sudo yum update -y
# OR
sudo dnf update -y

๐Ÿš€ Step 2: Install Docker

For 

Ubuntu

:

sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
  "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io -y

For 

CentOS/AlmaLinux

:

sudo yum install -y yum-utils
sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io -y

For AlmaLinux 8/9, replace yum with dnf where needed.


๐Ÿš€ Step 3: Start and Enable Docker

sudo systemctl start docker
sudo systemctl enable docker

Check status:

sudo systemctl status docker

๐Ÿš€ Step 4: Run a Test Container

Run a basic hello-world container:

sudo docker run hello-world

If everything is set up correctly, youโ€™ll see a message from Docker saying your installation is working.


๐Ÿš€ Step 5: Run Any Container (Example: NGINX)

sudo docker run -d -p 80:80 nginx

Visit your VPS IP in a browser to see the default NGINX welcome page.


โšก Bonus Tips

  • Add your user to the docker group to avoid using sudo:
sudo usermod -aG docker $USER

Then log out and log back in.

  • You can manage Docker containers using tools like Portainer for a web UI:
sudo docker volume create portainer_data
sudo docker run -d -p 9000:9000 --name=portainer \
    --restart=always \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v portainer_data:/data \
    portainer/portainer-ce

Access it at: http://your-server-ip:9000


๐ŸŒ Ready to Deploy Containers with Power?

Hosteons VPS plans provide full KVM virtualization, root access, and 10Gbps ports โ€” ideal for Docker workloads.

๐Ÿ‘‰ Order Budget VPS

๐Ÿ‘‰ Order Ryzen VPS

๐Ÿ‘‰ Order Ryzen VDS

How to Set Up a Private Proxy Server on Your KVM VPS

Setting up a private proxy server on your KVM VPS is a great way to enhance privacy, control internet access, or bypass geo-restrictions. In this tutorial, weโ€™ll guide you through the process of installing and configuring a private HTTP/HTTPS proxy server using Squid โ€” a powerful, flexible, and widely-used caching proxy.


โœ… 

Prerequisites

  • Aย KVM VPSย fromย Hosteons
  • Root access to your VPS
  • Ubuntu 20.04/22.04 or CentOS/AlmaLinux 8/9 installed

๐Ÿ”ง 

Step-by-Step Setup Using Squid Proxy

Step 1: Update System Packages

# For Ubuntu/Debian
sudo apt update && sudo apt upgrade -y

# For CentOS/AlmaLinux
sudo dnf update -y

Step 2: Install Squid

# Ubuntu/Debian
sudo apt install squid -y

# CentOS/AlmaLinux
sudo dnf install squid -y

Step 3: Backup Default Config

sudo cp /etc/squid/squid.conf /etc/squid/squid.conf.backup

Step 4: Configure Squid

Edit the config:

sudo nano /etc/squid/squid.conf

Look for and modify these lines:

http_port 3128

Add this at the top or near ACL section to allow only your IP:

acl allowed_ips src YOUR_IP_HERE
http_access allow allowed_ips
http_access deny all

Replace YOUR_IP_HERE with your real IP. You can get it from https://ipinfo.io


Step 5: Restart Squid

# Ubuntu/Debian
sudo systemctl restart squid

# CentOS/AlmaLinux
sudo systemctl restart squid

Step 6: Enable on Boot

sudo systemctl enable squid

๐Ÿ” 

Step 7: Test Your Proxy

Configure your browser or tool to use your VPS IP and port 3128 as the HTTP/HTTPS proxy. You can use websites like https://whatismyipaddress.com to verify your outgoing IP.


๐Ÿ” 

(Optional) Add Authentication to Your Proxy

To prevent misuse, you can add basic authentication.

  1. Install Apache utils:
sudo apt install apache2-utils -y  # Ubuntu/Debian
sudo dnf install httpd-tools -y   # CentOS/AlmaLinux
  1. Create password file and user:
sudo htpasswd -c /etc/squid/passwd proxyuser
  1. Editย squid.confย and add:
auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd
auth_param basic realm Proxy
acl authenticated proxy_auth REQUIRED
http_access allow authenticated
  1. Restart Squid again.

โœ… 

Done!

You now have a fully working private proxy server running on your Hosteons KVM VPS! This setup is lightweight, secure (with IP whitelisting or optional authentication), and suitable for personal or development use.


๐Ÿ”— Need a KVM VPS to try this?

Explore our plans at:

๐Ÿ‘‰ Budget KVM VPS (US & EU)

๐Ÿ‘‰ Ryzen KVM VPS (10 Gbps)

๐Ÿ’ณ Multiple payment options including Crypto, Alipay, PayPal, UPI, and more.

๐ŸŒ VPS available in the US and EU locations.

๐Ÿ“ก 10Gbps Port Speed included!

๐Ÿ› ๏ธ How to Install WordPress on a HostEONS VPS

๐Ÿš€ Full Root Access | ๐Ÿ” Secure Setup | ๐ŸŒ Open-Source Power

If youโ€™re ready to take full control of your WordPress website, installing it on a HostEONS VPS is the best way to go. Unlike shared hosting, a VPS gives you dedicated resourcesfull root access, and the ability to customize your server exactly the way you want.

This guide will walk you through how to install WordPress on a HostEONS VPS step-by-step.


โœ… Prerequisites

Before you begin, make sure you have:

  • Aย HostEONS VPSย with a clean install ofย Ubuntu 20.04 or 22.04
  • Root SSH access
  • A registered domain (you can buy one fromย HostEONS Domains)
  • Pointed the domainโ€™s A record to your VPS IP

๐Ÿ”ง Step 1: Update the Server

Log into your VPS using SSH:

ssh root@your-server-ip

Update your package list:

apt update && apt upgrade -y

โ˜๏ธ Step 2: Install Required Software (LEMP Stack)

1. 

Install NGINX

apt install nginx -y

Start and enable NGINX:

systemctl start nginx
systemctl enable nginx

2. 

Install MySQL

apt install mysql-server -y

Secure your database setup:

mysql_secure_installation

Then log in and create a database for WordPress:

mysql -u root -p

CREATE DATABASE wordpress;
CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'strongpassword';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

3. 

Install PHP

apt install php-fpm php-mysql php-cli php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip -y

๐ŸŒ Step 3: Configure NGINX for WordPress

Create a new NGINX config:

nano /etc/nginx/sites-available/yourdomain.com

Paste the following:

server {
    listen 80;
    server_name yourdomain.com www.yourdomain.com;

    root /var/www/html;
    index index.php index.html;

    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php8.1-fpm.sock;
    }

    location ~ /\.ht {
        deny all;
    }
}

Activate the config:

ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/
nginx -t
systemctl reload nginx

๐Ÿ“ฅ Step 4: Download and Install WordPress

Navigate to web root:

cd /var/www/html
rm index.nginx-debian.html

Download WordPress:

wget https://wordpress.org/latest.tar.gz
tar -xvzf latest.tar.gz
mv wordpress/* .
rm -rf wordpress latest.tar.gz

Set the correct permissions:

chown -R www-data:www-data /var/www/html
chmod -R 755 /var/www/html

โœ๏ธ Step 5: Configure wp-config.php

Copy the sample config:

cp wp-config-sample.php wp-config.php

Edit it:

nano wp-config.php

Update the database section with the credentials you created earlier:

define( 'DB_NAME', 'wordpress' );
define( 'DB_USER', 'wpuser' );
define( 'DB_PASSWORD', 'strongpassword' );
define( 'DB_HOST', 'localhost' );

Save and exit.


๐Ÿ”‘ Step 6: Finish Installation via Browser

Now go to:

http://yourdomain.com

Follow the on-screen instructions to complete the setup:

  • Choose your language
  • Set your site title, username, password, and email
  • Log in to your new WordPress dashboard

๐ŸŽ‰ Done! Youโ€™re Now Running WordPress on a HostEONS VPS

Youโ€™ve successfully installed WordPress on your VPS! You now have full control over your hosting environment, with speed and security unmatched by shared hosting platforms.