How to Install Docker on Robustel EG Series Gateways via Debian Package Manager

How to Install Docker on Robustel EG Series Gateways via Debian Package Manager

📖 Overview

This document outlines the procedures for installing the Docker Engine on Robustel EG series edge computing gateways (running RobustOS Pro). By leveraging the device's Debian-based architecture, users can configure official Docker repositories to install the container runtime environment. A supplementary guide is also provided for offline installation using local .deb packages.


🛠 What You'll Need

Hardware List

  • Robustel EG Series Gateway: e.g., EG5100, EG5120, EG5200.

Software/Firmware

  • RobustOS Pro: 2.4.0.
  • SSH Client: Such as PuTTY, Windows PowerShell, or macOS Terminal.

Other

  • Internet Access: The gateway must have an active WAN connection (Cellular or Ethernet) to download packages via apt.

📝 Note: If your gateway is not yet connected to the internet, please refer to the relevant documentation on configuring cellular or Ethernet WAN connectivity.

  • Sudo User Account: A user account with sudo privileges must be created on the device.

📝 Note: Refer to How to create a sudo user with SSH access on an EG series device to create a user if one does not exist.


🚀 Step-by-Step Configuration Guide

1️⃣ Step 1: Establish SSH Connection

  1. Open your SSH client or terminal.
  2. Connect to the device using the IP address and the sudo user credentials created in the prerequisites.
ssh <username>@<device_ip_address>
  1. Enter the password when prompted.

2️⃣ Step 2: Set Up Docker's Apt Repository

To ensure you install the latest official version of Docker, you must add the official Docker repository to the device's source list.

  1. Run the following commands block to install necessary certificates and add the Docker GPG key:

📝 Note: The first command may ask for your password. Enter the password for your sudo user to continue.

# Add Docker's official GPG key:
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
  1. Run the following block to add the repository to Apt sources:
# Add the repository to Apt sources:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOF
  1. Update the package index to recognize the new repository:
sudo apt update

3️⃣ Step 3: Install Docker Packages

Once the repository is set up, execute the following command to install the Docker engine and related plugins directly from the repository:

sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

📦 Supplement: Offline Installation (Optional)

If you do not wish to set up the apt repository, or if the device cannot access the external internet to download packages, you can use the .deb package method.

  1. Download Packages: On a PC with internet access, visit the official Docker repository path:
  1. Transfer Files: Use an SCP client (like WinSCP) to upload the downloaded .deb files to the gateway.
  2. Install: Run the following command in the directory where the files were uploaded:
sudo dpkg -i package_name.deb

Verification & Testing

After installation, it is critical to verify that the Docker service is active and capable of running containers.

1. Check Service Status

Run the following command to check if the Docker daemon is active and running:

sudo systemctl status docker

Success: The output should show Active: active (running) in green text.

2. Run a Test Container (Optional)

To verify that the Docker client can communicate with the daemon and pull images, run the "hello-world" image:

sudo docker run hello-world

Success: Docker will pull the image and print a confirmation message saying: "Hello from Docker! This message shows that your installation appears to be working correctly."


Troubleshooting / FAQ

  • Q: The apt update command fails or times out.
    • A: Check the device's WAN connection.
  • Q: I get a "Permission denied" error when running docker commands.
    • A: Docker commands typically require root privileges. Ensure you are using sudo before the command (e.g., sudo docker ps).
  • Q: I cannot find the sudo command.
    • A: Ensure you are logged in with the user created on the Sudo User page within the System -> User Management section.

📜 Revision History

Version

Date

Author

Notes

1.0

2025-12-09

Jens Zhou

Initial creation based on user notes.