![]() Let’s see how to use docker on AlmaLinux 9. If you need to add a user to the docker group that you’re not logged in as, run the following command: sudo usermod -aG docker username To do this, run the following command: sudo usermod -aG docker $(whoami)Īt this point, log out of your server and then back in with the same user to enable these changes. ![]() If you don’t want to use Sudo to run docker commands, you need to add your user to the docker group. or you can run a command with a user that is in a docker group that is created during the installation of Docker. Note: To run Docker commands, you need to log in as a non-root user with root privileges. Now you have the docker command-line utility. Loaded: loaded (/usr/lib/systemd/system/rvice enabled vendor pr>Īctive: active ( running) since Mon 05:42:55 EDT 12s ago rvice - Docker Application Container Engine.To check that your service is active and running, run the following command: sudo systemctl status docker When your installation is completed, start and enable the Docker service with the following command: sudo systemctl start rvice Then, you need to add the official Docker CE repository on AlmaLinux 9 with the following command: sudo dnf config-manager -add-repo=Īt this point, install the Docker-CE package on AlmaLinux 9 with the following command: sudo dnf install docker-ce docker-ce-cli containerd.io -y If the podman and buildah packages exist, you need to remove them with the following command: sudo dnf remove podman buildah Now you need to install the EPEL repository on AlmaLinux 9 with the following command: sudo dnf install epel-release -y You need to update and upgrade the system’s package repository with the following command: sudo dnf update -y & sudo dnf upgrade -y To do this, you can follow our guide the Initial Server Setup with AlmaLinux 9. To complete this guide, you must log in to your server as a non-root user with sudo privileges. Steps To Install and Use Docker on AlmaLinux 9
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |