To install Docker on CentOS Stream 10, follow these steps to set up Docker and Docker Compose on your system.
Step 1 : First, ensure your system is up to date by running the following command:
Step 2 : To manage repositories, you'll need to install the dnf-plugins-core
package:
Step 3 : Next, add the Docker CE (Community Edition) repository to your system:
Step 4 : Once the repository is added, install Docker by running the following command:
Step 5 : Start the Docker service and enable it to start automatically on system boot:
Step 6 : To ensure Docker is installed correctly, check its version:
Step 7 : Verify Docker Compose
Step 8 : Finally, run a simple test to verify that Docker is working:
Congratulations! You have successfully installed Docker and Docker Compose on CentOS Stream 10.