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.
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 asdocker-compose-v2
).I adapted the Docker install guide (https://docs.docker.com/engine/install/), but with minor adjustments, like using
apt
instead ofapt-get
and not installingdocker-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.