11/24/2021»»Wednesday

Opensuse Docker Install

If you want to convert one of the stable and easy to use Linux OpenSUSE Tumbleweed or Leap 15.1 into a containerized virtualization platform by Docker installation, then here are the steps to follow…

  1. Opensuse 15.2 Docker Install
  2. Opensuse Server Docker

To install Docker it is as easy as running the following commands: sudo zypper install docker. And we can start the service with: sudo systemctl start docker.service. If we also want Docker to start when starting the virtual machine, we can execute: sudo systemctl enable docker.service. As you can see, we have everything ready to install our. Installation with YaST2. To install the docker and docker-compose packages start YaST2, select 'Software' and start the module 'Software Management'. Search for docker and choose to install the Packages 'docker' and 'python3-docker-compose'. (Even though the package is called 'python3-docker-compose', it installs 'docker-compose' binary). DEPRECATED; for current images by the openSUSE Project see opensuse/leap and opensuse/tumbleweed.

Let’s do some hands on with Docker and openSUSE Leap 15. #### Install Docker Use GUI method. Use yast2 swsingle install docker. Yast2 swsingle. Select docker to install. Use command line to install docker. Use zypper to install, if you don’t want interactive use #zypper -n install docker. Zypper install docker. Greetings, In an attempt to follow along with the Self-Paced Training for Docker, I wanted to install Docker on my OpenSUSE 12.3 system. Unfortunately, the 'easy' instructions don't work at all: evenstar: # wget -&hellip.

Docker and OpenSUSE both are opensource platforms, however, SUSE is a full-fledged Linux operating system, while docker is a virtualization platform that can create and manage multiple virtual machines in an isolated container environment. The advantage of using Docker over other platforms such as Oracle VirtualBox or Vmware workstation player, it is lightweight, secure, run directly on OS kernel, quick to deploy machine, however, the difficult part is, a user has to give some to become proficient in using and managing the docker.

Contents

Install docker on opensuse
  • Docker Installation on OpenSUSE Tumbleweed or Leap 15.1

What do you need to set up Docker on SUSE?

  • Installed OpenSUSE Linux
  • A non-root user with sudo access
  • Internet connection

Docker Installation on OpenSUSE Tumbleweed or Leap 15.1

Step 1: Run Command line Terminal

If you are using the server version of the SUSE then you already on the command line just move to the next step. Those are on GUI, they can either open the Terminal from Application or simply using the keyboard shortcut- CTRL+ALT+T.

Step 2: System update

Before moving further, just update your system that will ensure all the available packages and repositories are up to date.

Step 3: Docker Installation command for OpenSUSE

Opensuse 15.2 Docker Install

To install the Docker we don’t need to add any third-party repository, all the files we need to set up this virtualization platform are available on the official repo of OpenSUSE. That’s why in RPM-based Linux, I like it the most.

Opensuse Docker Install

When it will ask for your permission to download the packages, press Y and hit the Enter button.

The output for the above command:

Step 4: Enable and Start the Docker services

Once the installation has been completed, enable the docker service to run automatically with system boot and then start the same.

Opensuse Server Docker

Step 5: Enable Docker to run on OpenSUSE without sudo

Now, the thing is, every time, when we want to run docker on OpenSUSE, we have to use the sudo with it, if you are comfortable with that you can leave this step. However, those don’t want to repeat sudo with every docker command they can run the below-given syntax in their terminal.

Create Docker Group

Generally, with its installation, the script will automatically create a docker group on our system, however, you can run the below command to confirm that.

The output:

groupadd: group ‘docker’ already exists

Next, Add your current system user to the Docker group

Now, reload the group ID during a login session., so that our shell could recognize that you are now the member of the docker group.

Note: Instead of running newgrp docker, you can also properly log out and log in again to run docker.

Step 6: Install some Docker image to check it

So, now this containerized platform is on our SUSE systems, and its time to check, whether it is working fine or not, for that here we are downloading the latest Ubuntu Linux docker image

The above command will setup Ubuntu on OpenSUSE inside a virtual container running using docker.

After pulling and installing the image, we can run it:

To exit the running docker container, simply type

exit or CTRL+D.

To see all installed containers, type:

You can check out the official page to see the commands related to docker container updates such a memory, CPU, and more.

Run Docker-CE on OpenSUSE Linux

Other Linux tutorials:

Prepare the host as described below. Before installing any Docker-related packages, you need to enable the container module:

Note: Built-in Docker Orchestration Support

Starting with Docker Open Source Engine 1.12, the container orchestration is now an integral part of Docker Open Source Engine. Even though this feature is available in SUSE Linux Enterprise Server, it is not supported by SUSE and is only provided as a technical preview. Use Kubernetes for Docker container orchestration, for details refer to the Kubernetes documentation.

Procedure 2.1: Enabling the Container Module Using YaST #
  1. Start YaST, and select Software Software Repositories.

  2. Click Add to open the add-on dialog.

  3. Select Extensions and Modules from Registration Server and click Next.

  4. From the list of available extensions and modules, select Container Module 15 x86_64 and click Next.

    The containers module and its repositories will be added to your system.

  5. If you use Repository Mirroring Tool, update the list of repositories on the RMT server.

Procedure 2.2: Enabling the Container Module Using SUSEConnect #
  • The Container Module can be added also with the following command:

    Note: SUSEConnect Syntax

    The -r ' flag is required to avoid a known limitation of SUSEConnect.

Procedure 2.3: Installing and Setting Up Docker Open Source Engine #
  1. Install the docker package:

  2. To automatically start the Docker service at boot time:

    This will automatically enable docker.socket in consequence.

  3. In case you will use Portus and an SSL secured registry, open the /etc/sysconfig/docker file. Search for the parameter DOCKER_OPTS and add --insecure-registry ADDRESS_OF_YOUR_REGISTRY.

  4. In the production environment when using the SSL secured registry with Portus, add CA certificates to the directory /etc/docker/certs.d/REGISTRY_ADDRESS and copy the CA certificates to your system:

  5. Start the Docker service:

    This will automatically start docker.socket.

The Docker daemon listens on a local socket which is accessible only by the root user and by the members of the docker group. The docker group is automatically created at package installation time. To allow a certain user to connect to the local Docker daemon, use the following command:

The user can communicate with the local Docker daemon upon their next login.

Most Viewed Posts