Bobcares

WeSupport

Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

Our experts have had an average response time of 11.06 minutes in March 2021 to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

“Docker: unrecognized service” error – How to resolve

by | Jun 11, 2021

Wondering how to resolve “Docker: unrecognized service” error? We can help you.

Docker is an open-source containerization platform to run on Windows, Linux, and macOS.

As part of our Docker Hosting Support, we assist our customers with several Docker queries.

Today, let us see the steps followed by our Support Techs to resolve this error.

 

How to resolve “Docker: unrecognized service” error?

 
After installing Docker on Centos, users may see this error while trying to start the Docker service.

# service docker start
docker: unrecognized service

Let us see two different methods used by our Support Techs to resolve it.
 

Method 1:

 
In this method, we need to remove docker and then edit Repo.

First, remove the docker using below command:

yum remove docker

Then remove docker-selinux (if you have installed it before)

yum remove docker-selinux

Then modify the file.

vi /etc/yum.repos.d/docker.repo

Fill in the following content directly:

[dockerrepo]

name=Docker Repository

baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/

enabled=1

gpgcheck=1

gpgkey=https://yum.dockerproject.org/gpg

Then start the installation:

yum install docker-engine

Installed as a dependency: docker-engine-selinux.noarch 0:1.10.2-1.el7.centos

Finally, start the docker service:

service docker start

The following status code is returned:

Starting cgconfig service: [OK]
Starting docker: [OK]

This ensures that the docker starts successfully.

 

Method 2:

 
In this method, you can directly install using below command:

# curl -fsSL https://get.docker.com/ | sh + sh -c’sleep 3; yum -y -q install docker-engine’

You might see the below prompt message which can be ignored.

Warning: /var/cache/yum/x86_64/7/docker-main-repo/packages/docker-engine-selinux-1.10.2-1.el7.centos.noarch.rpm: header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY docker-engine-selinux-1.10.2-1.el7.centos.noarch.rpm public key has not been installed Import GPG key 0x2C52609D: User ID: “Docker Release Tool (releasedocker) “Fingerprint: 5811 8e89 f3a9 1289 7c07 0adb f762 2157 2c52 609d From: https://yum.dockerproject.org/gpg setsebool: SELinux is disabled. + sh -c’docker version’ Client: Version: 1.10.2 API version: 1.22 Go version: go1.5.3 Git commit: c3959b1 Built: Mon Feb 22 16:16:33 2016 OS/Arch: linux/amd64 Cannot connect to the Docker daemon. Is the docker daemon running on this host? If you would like to use Docker as a non-root user, you should now consider adding your user to the “docker” group with something like: sudo usermod -aG docker your-user Remember that you will have to log out and back in for this to take effect!

Then just start it directly using the below command:

service docker start Redirecting to /bin/systemctl start docker.service

 

[Need help with Docker error? We can help you]

 

Conclusion

In short, “Docker: unrecognized service” error may occur while trying to restart Docker service. Today, we saw the methods followed by our Support Techs to resolve it.

Are you using Docker based apps?

There are proven ways to get even more out of your Docker containers! Let us help you.

Spend your time in growing business and we will take care of Docker Infrastructure for you.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Docker Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management to us, and use that time to focus on the growth and success of your business.

TALK TO US Or click here to learn more.
Docker Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management to us, and use that time to focus on the growth and success of your business.

TALK TO US Or click here to learn more.

Categories:

Tags:

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF