Docker Community Forums

Share and learn in the Docker community.

Unable to install docker 1.12 on centos 7- insted it's installing version 1.11.2


(5359778) #1

Hi,
I tryed to install docker version 1.12 on centos 7, i used the command in the offical site:
https://docs.docker.com/engine/installation/linux/centos/ , but no matter what i did version 1.11.2 was
installed insted…
Can any one know why? or how can i install 1.12 ?


(Martycurran) #2

I initially had the same issue with ubuntu from the site but found the github release worked
There are install links further down this page:


(No1d) #3

Yea I went crazy looking for this too. So I uninstalled all of the docker engine componentes and used this curl -fsSL https://test.docker.com/ | sh

That installed the newest version of docker and I’m up and running.


(Erik-jan Riemers) #5

The docs point to the “final” solution. If you add the experimental repo it will work. Which is https://yum.dockerproject.org/repo/experimental/centos/7/


(Vikas Kumar) #6

Below steps worked fine for me on CentOS 7.2. This fixes the below error as well due to the missing docker.socket file.

sudo systemctl start docker
Failed to start docker.service: Unit docker.socket failed to load: No such file or directory.

STEPS

# cat > /etc/yum.repos.d/docker.repo <<-EOF
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
# 

# yum install docker-engine -y

# cat > /usr/lib/systemd/system/docker.socket <<-EOF
[Unit]
Description=Docker Socket for the API
PartOf=docker.service

[Socket]
ListenStream=/var/run/docker.sock
SocketMode=0660
SocketUser=root
SocketGroup=docker

[Install]
WantedBy=sockets.target
EOF
#

# systemctl enable docker
# systemctl start docker

(Jamshid) #7

Thank you! After creating the docker.socket file I also had to do this before the service would start.
systemctl daemon-reload