Setup docker compose v2 » Historie » Revision 2
Revision 1 (Jeremias Keihsler, 18.03.2024 18:18) → Revision 2/6 (Jeremias Keihsler, 18.03.2024 18:18)
h1. Setup docker compose v2 https://goneuland.de/docker-docker-compose-v2-auf-ubuntu-22-04-lts-installieren/ h2. uninstall old version of docker <pre><code class="shell"> for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done </code></pre> h2. add docker-repo h3. remove olkt source-list <pre><code class="shell"> sudo rm /etc/apt/sources.list.d/docker.list </code></pre> h3. install dependencies <pre><code class="shell"> sudo apt update sudo apt install ca-certificates curl gnupg </code></pre> h3. add keys <pre><code class="shell"> sudo install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg sudo chmod a+r /etc/apt/keyrings/docker.gpg </code></pre> h3. add repo <pre><code class="shell"> echo \ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null </code></pre> h2. docker and docker compose install <pre><code class="shell"> sudo apt update sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin </code></pre> check version: <pre><code class="shell"> sudo docker --version && docker compose version </code></pre>