

Using docker consists of passing it a chain of options and subcommands followed by arguments. With Docker installed and working, now’s the time to become familiar with the command line utility. 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: sudo dnf install docker-ce docker-ce-cli containerd.ioĪfter installation has completed, start the Docker daemon:.With the repository added, install Docker, which is composed of three packages: While there is no Rocky Linux specific repository from Docker, Rocky Linux is based upon CentOS and can use the same repository.

Next, add the official Docker repository: This section shows you how to do just that.īut first, let’s update the package database: To get the latest and greatest version, install Docker from the official Docker repository. 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.
