greenbone / docs

Documentation for the Greenbone Community Edition
https://greenbone.github.io/docs/
Creative Commons Attribution Share Alike 4.0 International
23 stars 32 forks source link

Use official Docker repository and install Compose v2 #370

Closed n-thumann closed 1 year ago

n-thumann commented 1 year ago

What

This PR updated the documentation to use the official Docker repo instead of the Debian / Ubuntu one to install the Docker packages. It's mainly for docker-compose to use the latest release instead of the EOL Debian / Ubuntu package or the one from PyPi. Compose is now installed as a CLI plugin with version 2 instead of a standalone binary in version 1.

Why

The final Compose V1 release, version 1.29.2, was May 10, 2021. These packages haven't received any security updates since then. Use at your own risk. (from https://docs.docker.com/compose/migrate/). Both the Debian / Ubuntu package and the PyPi package contain Compose v1, which we shouldn't recommend using any more (Note: Compose v2 will be available for the upcoming Ubuntu 23.10 as docker-compose-v2).

I adapted the Docker install guide (https://docs.docker.com/engine/install/), but with minor adjustments, like using apt instead of apt-get and not installing docker-buildx-plugin, because we don't need it.

References

Supersedes https://github.com/greenbone/docs/pull/368 (also installed Compose v2, but as a standalone binary)

Checklist

I tested this updated instructions (up to the point where the containers were successfully started) on Ubuntu 22.04 and CentOS 8 using https://app.vagrantup.com/generic/boxes/ubuntu2204 and https://app.vagrantup.com/generic/boxes/centos8.