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 ?
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:
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.
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/
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
Thank you! After creating the docker.socket file I also had to do this before the service would start.
systemctl daemon-reload