Wednesday, August 16, 2023

Docker Installation - Errors related to importing the "which" module

 Docker Installation - Errors

In case  you encountered errors related to importing the "which" module while installing Docker CE on CentOS Stream 8. The "which" module is often used to find the location of an executable on the system. These errors could be caused by various reasons, including missing dependencies or issues with your system's Python environment.

To resolve this, you can take the following steps:

1. Install Python3:

   Ensure that you have Python3 installed on your system. If it's not installed, you can install it using the following command:

#   sudo dnf install python3


2. Verify Python3 Installation:

   Confirm that Python3 is properly installed by running:

   # python3 --version

   This should display the version of Python3 installed on your system.


3. Reattempt Docker CE Installation:

   After confirming Python3 is installed, try reattempting the Docker CE installation:

  # sudo dnf install docker-ce


4. Start Docker Service:

   Once Docker CE is installed, start the Docker service as previously described:

   # sudo systemctl start docker

   # sudo systemctl enable docker

   

5. Verify Installation:

   Verify the Docker and Docker Compose installation as described earlier:

   # docker --version

   # docker-compose --version

  

If you continue to encounter issues, ensure that your system's environment is stable, and that you have necessary dependencies installed. You might also consider checking for any updates or patches related to the specific issue you're facing.

No comments:

Post a Comment

Removing Docker container

  Removing Docker container To delete the container named "kke-container" running on Server , you can use the following steps: 1. ...