daydreamer
daydreamer

Reputation: 92179

Docker can not be installed on CentOS

I am trying to install docker on machine which is

Distributor ID:    CentOS
Description:    CentOS release 6.7 (Final)
Release:    6.7
Codename:    Final

I followed article https://docs.docker.com/engine/installation/linux/centos/#install-from-a-package

I am at the step where is says

$ sudo systemctl start docker

And when I run it I get

$ sudo systemctl start docker
sudo: systemctl: command not found

What am I missing?

Upvotes: 0

Views: 706

Answers (2)

Matt
Matt

Reputation: 74899

Docker 1.7.1 is available on EPEL as the docker-io package. After that support for RHEL6 was dropped.

Upvotes: 0

Andy Shinn
Andy Shinn

Reputation: 28553

As already commented, the later versions of Docker only install on CentOS 7. See the OS requirements section at https://docs.docker.com/engine/installation/linux/centos/#os-requirements. I believe CentOS 6 uses a SysV init system while CentOS 7 is based on systemd. This is why there is no systemctl command on your CentOS 6 system.

Upvotes: 3

Related Questions