how to install docker in sles 12?

ketan picture ketan · Dec 14, 2016 · Viewed 9.5k times · Source

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

Answer

Thibaut picture Thibaut · Mar 27, 2019

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/