Installing the RPM

Portus can be installed from an RPM package on openSUSE and SUSE Linux Enterprise. We provide an up-to-date package from master’s snapshots on a daily basis inside of the Virtualization:containers:Portus project on the Open Build Service. Packages for stable releases of Portus can be found inside of dedicated release projects on the Open Build Service.

First of all you need to add the right repository and then install Portus. This can be done from the command line tool using zypper itself, but the easiest approach is to use “1-click install” feature offered by Just follow this link, select the right release of openSUSE/SUSE Linux Enterprise and then click the “1-click install” button.

This will add the right repository to your machine and, at the same time, install the Portus RPM on your system.

Portus’ dependencies

Portus requires a MariaDB instance running and, obviously, also a Docker registry v2 instance. Both MariaDB and Docker Registry can run on different hosts (that’s why the RPM just recommends these packages, instead of requiring them).

Installing MariaDB

You can install MariaDB from the packages shipped with openSUSE/SUSE Linux Enterprise:

$ zypper in mariadb

Make sure you invoke /usr/bin/mysql_secure_installation to secure your installation (note that you must have MariaDB already running in order to execute this). Even if Portus might work with older releases of MariaDB, we recommend using the latest one.

Docker registry V2

We maintain packages for Docker registry V2 named docker-distribution-registry. SUSE Linux Enterprise customers can find the docker-distribution-registry inside of the “Containers” module. openSUSE users can find the package inside of the Virtualization:containers project on the Open Build Service. If you already have Docker Distribution installed, make sure that it abides to our requirements.

Initial setup

The Portus RPM ships with a cli tool named portusctl (see its documentation). This tool can be run only by the root user and makes it easier to manage Portus on openSUSE and SUSE Linux Enterprise systems. To perform the initial setup execute:

$ portusctl setup

The setup command takes multiple parameters. You can see all the options (and their default values) by typing portusctl help setup. One common situation is when the registry is running on the same host. For this case, you have to pass the --local-registry flag. Note that this flag will not configure the registry on the DB (this has to be done afterwards as described here)

Note that you don’t need your registry to be running in order to perform the above command. However, if you already had the registry running, you will have to restart it after executing this command, so it picks the proper configuration values.

The default installation

The default installation has:

  • Portus served over HTTPS (all the certs are created by portusctl).
  • Registry (when ran locally on the same host) uses TLS to secure all the communications and listening on port 5000.

When you first enter on your Portus instance, you will have to register your private registry. This is better explained in this documentation page. In the default installation (and with the registry running locally), you will have to enter:

  • Name: whatever value you want.
  • Hostname: your hostname + “:5000”. The hostname being picked is the one returned by the command hostnamectl --static status (or just hostname -f if you are doing all this inside of a Docker container). Therefore, if for example that command returns, then you will have to enter:
  • Use SSL: as explained above, the default installation does use encryption. Therefore, you have to check this.

Common pitfalls

  • The portusctl utility uses the hostname of the current machine to generate certificates. This will of course fail if there is no hostname set.
  • The ruby version must be 2.1. This can be a problem for example in openSUSE Tumbleweed that has both ruby 2.1 and 2.2. This can also be a problem if you are using RVM, rbenv or something similar. Therefore, you have to make sure that you use the system ruby and that this is ruby 2.1.

Further configuration of the Portus instance

Before you start using Portus, you might want to configure it. This is thoroughly explained here. In the configuration, make sure to check:

  • The configuration for LDAP support. (Read more here)
  • How to create the first admin user. (Read more here)
  • Enforce SSL on production. (Read more here)