Introduction
Docker is an open-source platform that enables developers to build, deploy, run, update and manage containers and uses OS-level virtualization to deliver software in packages called containers. Docker is a tool used to automate the deployment of applications in lightweight containers so that applications can work efficiently in different environments. The software that hosts the containers is called Docker Engine.
In this article, we will explain to you how to install docker-CE on openSUSE 15.2
Install Docker
- Update the package index.
$ sudo zypper update
-
Installing the docker-compose.
$ sudo zypper install docker docker-compose
Test the Docker installation
- After installing docker is completed, the first thing you will need to do is start the service.
$ sudo systemctl start docker
- Enable the docker service.
$ sudo systemctl enable docker
- Verify the status of the docker service.
$ sudo systemctl status docker
Output
-
Let's test the docker installation using the hello-world docker image. If your installation is successful you will be seeing the below output.
$ sudo docker run hello-world
Output