How to fix the Error starting docker service Unit not found?

How to fix the Error starting docker service Unit not found?

After installing the Docker when I executed the following command -

BASH

I immediately faced the following error on my CentOS machine -

In case if you are working on RedHat then you might face this error message -

Here is how I tried to fix the issue -

Re-install the latest version of the docker

There is a very high possibility that the version of docker which you running either onto your or machine is not supported and this is what happened with me.

I just randomly installed Docker onto my CentOS machine. Installation went pretty smoothly but when I tried starting the docker I noticed it can not find the .

And here are the steps that I followed after that -

Uninstall the old version of docker -

The first important step is to remove the previous docker installation and all the docker components such as - docker-engine, docker-client, docker-common, docker-logrotate, etc.

Here is the command for removal -

2. Add docker repository to Yum package manage

After removing the old version of docker you must add the latest and correct docker repository to your .

3. Install Docker engine

Now we have removed the old version of Docker as well as added the latest version of the Docker repository to package manager.

Now its time to install the docker -

4. Start the Docker service

After installing the docker in the previous step let us start the docker service -

5. Verify the docker installation

You can now verify the docker installation by running the following docker command -

To view or add a comment, sign in

Others also viewed

Explore topics