Before start you must remove the legacy docker-compose command. For example found it with
which docker-composethen use sudo rm -f {docker-compose-path} to remove it.
Than you must install the Docker Compose plugin with the following
sudo apt-get update
sudo apt-get install docker-compose-pluginsudo curl -sL https://raw.githubusercontent.com/javanile/docker-compose/main/docker-compose -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-composeThe MIT License (MIT). Please see License File for more information.