Installing docker 17 version on centos 7 - docker

I want install docker 17 on centos,can you please suggest me on this.
once i have used below yum command to install docker
yum install docker*
I got 1.12.6 version.

The 1.12.6 version you have installed is a package that is maintained by Red Hat / CentOS.
To install the official Docker package, that is maintained by Docker, follow the instructions in the documentation; https://docs.docker.com/engine/installation/linux/centos/
Be sure to uninstall the package you have installed before installing the official package.

You're installing last Docker version that is in your CentOS repos.
To install last Docker stable version, first, uninstall your current Docker installation. Then, you can easily install last version using Docker official installation script.
wget -qO- https://get.docker.com/ | sh

Related

what the differences between Install Docker Engine from binaries VS docker installation by yum and pip

we want to install docker and docker compose on our rhel machine
what are the differences between Install Docker Engine from binaries VS docker installation by yum and pip?
difference is versions, an package which comes with yum should be tested for compatibility with host OS

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

Resources