Projekt

Allgemein

Profil

Aktionen

Setup docker compose v2 » Historie » Revision 1

Revision 1/6 | Weiter »
Jeremias Keihsler, 18.03.2024 18:18


Setup docker compose v2

https://goneuland.de/docker-docker-compose-v2-auf-ubuntu-22-04-lts-installieren/

uninstall old version of docker

for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done

add docker-repo

remove olkt source-list

sudo rm /etc/apt/sources.list.d/docker.list

install dependencies

sudo apt update
sudo apt install ca-certificates curl gnupg

add keys

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

add repo

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

docker and docker compose install

sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

check version:

sudo docker --version && docker compose version

Von Jeremias Keihsler vor 8 Monaten aktualisiert · 1 Revisionen