Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 308
ketan Avatar asked Mar 11 '23 10:03

ketan


2 Answers

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/

like image 198
Thibaut Avatar answered Mar 20 '23 03:03

Thibaut


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/

like image 27
user2915097 Avatar answered Mar 20 '23 03:03

user2915097