Howto docker

From Vidalinux Wiki
Revision as of 19:43, 18 January 2023 by Mandulete1 (talk | contribs) (Created page with "= install docker archlinux = install docker on archlinux: pacman -Syu docker docker-compose --noconfirm = install docker ubuntu/debian = install dependencies: sudo apt update sudo apt -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common import docker gpg key: curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg add docker repository: sudo add-apt-repository \...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

install docker archlinux

install docker on archlinux:

pacman -Syu docker docker-compose --noconfirm

install docker ubuntu/debian

install dependencies:

sudo apt update
sudo apt -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common

import docker gpg key:

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

add docker repository:

sudo add-apt-repository \
  "deb [arch=amd64] https://download.docker.com/linux/debian \
  $(lsb_release -cs) \
  stable"

update package index and install docker:

sudo apt update && sudo apt update && apt install -y docker-ce docker-ce-cli containerd.io

install docker-compose:

curl -s https://api.github.com/repos/docker/compose/releases/latest | grep browser_download_url  | grep docker-compose-linux-x86_64 | grep -v .sha256 | cut -d '"' -f 4 | wget -qi - -O /usr/local/bin/docker-compose 

change file permissions:

chmod +x /usr/local/bin/docker-compose