

If you choose not to, please prepend the commands with sudo. The rest of this article assumes you are running the docker command as a user in the docker user group. If you need to add a user to the docker group that you’re not logged in as, declare that username explicitly using: You will need to log out of the Droplet and back in as the same user to enable this change. If you want to avoid typing sudo whenever you run the docker command, add your username to the docker group: Is the docker daemon running on this host?. Outputdocker: Cannot connect to the Docker daemon. The output should be similar to the following, showing that the service is active and running:

The Docker installation package available in the official Rocky Linux 9 repository may not be the latest version. Initial Setup Guide for Rocky Linux 9 explains how to add users and give them sudo access. If root access is required for the command, it will be preceded by sudo.

A Rocky Linux 9 server with a non- root user with sudo privileges set up using Initial Setup Guide for Rocky Linux 9 explains how to set this up.Īll the commands in this tutorial should be run as a non-root user.In this tutorial, you’ll learn how to install and use it on an existing installation of Rocky Linux 9. For a detailed introduction to the different components of a Docker container, check out The Docker Ecosystem: An Introduction to Common Components. Docker is an application that makes it simple and easy to run application processes in a container, which are like virtual machines, only more portable, more resource-friendly, and more dependent on the host operating system.
