Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
1 view
in DevOps and Agile by (29.3k points)

I am getting the following error while installing Docker on EC 2 instance, I am using following commands to install Docker 

Docker Installation on AWS

Install the installed packages and package cache on your instance

 

sudo yum update -y

Install the most recent docker community edition package
 

sudo yum install docker -y

But when i tried to start the docker service, I am getting the below error:

[[email protected] ~]$ sudo service start docker
Redirecting to /bin/systemctl start docker.service
Failed to start docker.service: Unit start.service not found.

1 Answer

0 votes
by (50.2k points)

Reason: This occurs due to the wrong usage of service.

Solution: To resolve this issue kindly use:

sudo systemctl start docker

or you can use,

sudo service start docker

For more commands like this, refer Docker Cheat Sheet.

Related questions

0 votes
1 answer
asked Mar 19, 2020 in AWS by chandra (29.3k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Mar 27, 2020 in DevOps and Agile by chandra (29.3k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...