Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
knowledge_base:linux:docker:setup [2021/03/02 22:19] – ↷ Seite von knowledge_base:linux:docker nach knowledge_base:linux:docker:setup verschoben und umbenannt julian.lemmerich | knowledge_base:linux:docker:setup [2024/04/15 20:56] (aktuell) – remove CentOS, polish article julian.lemmerich | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Docker | + | ====== Docker |
- | ===== CentOS7 | + | ===== Debian 10 ===== |
- | Install | + | https:// |
<code bash> | <code bash> | ||
- | sudo yum install docker-engine | + | apt-get update |
+ | apt-get | ||
+ | |||
+ | mkdir -p / | ||
+ | curl -fsSL https:// | ||
+ | |||
+ | echo \ | ||
+ | "deb [arch=$(dpkg --print-architecture) signed-by=/ | ||
+ | $(lsb_release -cs) stable" | ||
+ | |||
+ | apt-get update | ||
+ | apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin | ||
</ | </ | ||
- | Install docker-compose (from [[https:// | + | on kali the apt source needs to be manually edited to debian bookworm |
- | < | + | < |
- | sudo curl -L " | + | #testing out |
- | sudo chmod +x / | + | docker |
</ | </ | ||
- | Start docker | + | ==== non-root user ==== |
- | < | + | |
- | service | + | ‼ This is basically equivalent to sudo rights! Be careful! |
+ | |||
+ | < | ||
+ | sudo groupadd docker | ||
+ | sudo usermod -aG docker | ||
</ | </ | ||
- | ===== Debian 10 ===== | + | ===== Ubuntu |
- | https:// | + | https:// |
<code bash> | <code bash> | ||
- | apt-get update | + | sudo apt-get |
+ | curl -fsSL https:// | ||
+ | echo \ | ||
+ | "deb [arch=$(dpkg --print-architecture) signed-by=/ | ||
+ | $(lsb_release -cs) stable" | ||
+ | sudo apt update | ||
+ | sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y | ||
+ | </ | ||
- | apt-get install \ | + | ===== Windows with WSL2 ===== |
- | apt-transport-https \ | + | |
- | ca-certificates \ | + | |
- | curl \ | + | |
- | gnupg-agent \ | + | |
- | software-properties-common | + | |
- | curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - | + | First install WSL according to the docs: https://docs.microsoft.com/de-de/windows/wsl/install-manual, |
- | apt-key fingerprint 0EBFCD88 | + | then install docker Desktop as admin. |
- | add-apt-repository \ | + | If the user is not admin, its needs to be added to a Group |
- | " | + | |
- | | + | |
- | | + | |
- | + | ||
- | apt-get update | + | |
- | apt-get install docker-ce docker-ce-cli containerd.io | + | |
- | #testing out | ||
- | docker run hello-world | ||
- | </ |