RUTC50 Docker as non root user?

Is it possible to run docker from package manager using a non ROOT user ?

Good afternoon,

On most Linux systems, Docker installed via a package manager runs the Docker daemon (dockerd) as root. By default, only the root user (or users with sudo) can interact with Docker. However, you can allow non-root users to run Docker commands by adding them to the docker group:

Create the Docker group (if it doesn’t exist)

bash
sudo groupadd docker

Add your user to the Docker group

bash
sudo usermod -aG docker $USER

Log out and log back in to apply the group changes.

Test Docker access

bash
docker ps

You should be able to run Docker commands without sudo.
Security Note
Even when running Docker as a non-root user via the docker group, the Docker daemon itself still runs as root. This means users in the docker group effectively have root-level access to the system through Docker.

Rootless Docker Mode

Docker also supports a “rootless” mode, where both the Docker daemon and containers run entirely as a non-root user. This mode is designed to improve security by removing the need for root privileges entirely.

However, on Teltonika devices (e.g., RUTOS) Rootless Docker is officially unsupported due to file ownership and compatibility issues. Files created on the host may appear as owned by ‘root’ in the container, leading to permission problems.

Regards,
Arturas

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.