Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
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:

[ec2-user@ip-172-31-39-235 ~]$ 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!

30.5k questions

32.5k answers

500 comments

108k users

Browse Categories

...