Docker can not be installed on CentOS - docker

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?

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.

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

Related

How to install Docker CE on RHEL 7.2, since we are doing a poc we dont want to pay for EE

We are having RHEL 7.2, native docker is not available in the OS. So for installing Docker CE, we have to install docker using CentOS repo (read from blogs). Is this the only option available to install docker on RHEL?
Docker is also available via the rhel-7-server-extras-rpms repository, assuming you have the correct subscription attached to your RHEL 7.2 installation.
You can enable the repository with this command:
$ sudo subscription-manager repos --enable rhel-7-server-extras-rpms
After that, you should see docker available to you.

How to install docker version 17.04 on Amazon Linux?

I tried installing docker on Amazon Linux but found that currently sudo yum install docker installs version 1.12. However, I need docker version 17.04. How can I upgrade my docker version or install version 17.04 on Amazon Linux ?
Docker instillation comes with a predefined Cloud formation template this can be found in , the version is 17 here
https://editions-us-east-1.s3.amazonaws.com/aws/stable/Docker.tmpl
you can always run an upgrade command if you do not want to sue a cloud formation template
$ docker-machine upgrade default

how to install docker in sles 12?

I want to install docker stable version in my suse system (version sles 12). For installing docker in suse system, need to add repository of docker.
I didn't found any url (repository url) for adding docker repository of version 1.6. I found docker version 1.12 but it is not working in my case. I removed docker repository now.
can anyone suggest me how I can add correct repository and install docker further in my system?
edit- sample commands and output
docker -v
Docker version 1.6.0, build 4749651
docker pull hello-world
FATA[0000] Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
sudo docker pull hello-world
sudo: docker: command not found
You can use zypper to do that.
You have to adapt the repository url to your SUSE version. To find the correct package repository, please follow this link
https://software.opensuse.org/download.html?project=Virtualization%3Acontainers&package=docker
sudo zypper addrepo https://download.opensuse.org/repositories/Virtualization:containers/openSUSE_Leap_15.0/Virtualization:containers.repo
sudo zypper dist-upgrade
sudo zypper update
sudo zypper install docker
Source : https://w3blog.fr/en/2019/03/25/install-docker-open-source-on-linux-suse/
You will find Docker 1.6 at
https://get.docker.com/builds/Linux/x86_64/docker-1.6.0.tgz
The general doc for installing docker in Suse is available at
https://docs.docker.com/engine/installation/linux/SUSE/

yum install error docker

CentOS version: lsb_release -d
Description: CentOS release 6.5 (Final)
My repo looks like this
cat /etc/yum.repos.d/docker.repo
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
I have some old version of docker and when I try to install it, I get an error. When I try the skip option, even after that the docker service does not even exist on my centos yum install docker-engine has the following problem
Processing Conflict: docker-engine-1.7.1-1.el6.x86_64 conflicts docker-io
--> Finished Dependency Resolution
Error: docker-engine conflicts with docker-io-0.6.2-1.el6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest"
Then service docker start does not exist when I try to start it.
How do I do clean of all docker stuff and do this from scratch?
Docker's official release no longer supports RHEL/Centos 6. I think that stopped with 1.7.1 and the official release is at 1.10. I would suggest updating to Centos 7 or anything with a 3.10+ kernel to use the latest docker-engine as it has improved quite a bit.
If you are stuck with Centos 6.5 then either continue with the the EPEL docker-io package or install the 1.7.1 rpm.
Completely remove the Centos 6 package
yum remove docker-io
Remove all docker data (and never get it back!)
rm -rf /var/lib/docker
Remove the Docker repo config
rm /etc/yum.repos.d/docker.repo
Either install docker-io again
yum install docker-io
Or install the docker-engine-1.7.1 rpm
yum install http://yum.dockerproject.org/repo/main/centos/6/Packages/docker-engine-1.7.1-1.el6.x86_64.rpm
Start it and docker
service docker start
docker run hello-world

Upgrading to docker 1.9 on Centos 7.1

I am trying to upgrade to docker 1.9 from docker 1.8 version
I have used the following command to upgrade docker:
sudo wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O
/usr/bin/docker
Howerver, after successful upgrade I am not able to restart the docker service.
The following command is failing
sudo systemctl start docker
Please help
It seems your disk is full. Check the disks df -h. And prepare enough disk space for your apps

Resources