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/04 11:55] – added [Win10 + WSL2] 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 install ca-certificates curl gnupg lsb-release -y |
| - | Install docker-compose (from [[https://docs.docker.com/ | + | mkdir -p / |
| + | curl -fsSL https://download.docker.com/ | ||
| - | <code bash> | + | echo \ |
| - | sudo curl -L "https://github.com/docker/compose/ | + | "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/ |
| - | sudo chmod +x /usr/ | + | |
| + | |||
| + | apt-get update | ||
| + | apt-get install docker-ce docker-ce-cli containerd.io | ||
| </ | </ | ||
| - | Start docker | + | on kali the apt source needs to be manually edited to debian bookworm |
| - | < | + | |
| - | service | + | < |
| + | #testing out | ||
| + | docker | ||
| </ | </ | ||
| - | ===== Debian 10 ===== | + | ==== non-root user ==== |
| - | https:// | + | ‼ This is basically equivalent to sudo rights! Be careful! |
| - | < | + | < |
| - | apt-get update | + | sudo groupadd docker |
| + | sudo usermod | ||
| + | </ | ||
| - | apt-get install \ | + | ===== Ubuntu ===== |
| - | apt-transport-https \ | + | |
| - | ca-certificates \ | + | |
| - | curl \ | + | |
| - | gnupg-agent \ | + | |
| - | software-properties-common | + | |
| - | curl -fsSL https://download.docker.com/ | + | https://docs.docker.com/ |
| - | apt-key fingerprint 0EBFCD88 | + | |
| - | add-apt-repository | + | <code bash> |
| - | | + | sudo apt-get install ca-certificates curl gnupg lsb-release |
| - | | + | curl -fsSL https:// |
| - | stable" | + | echo \ |
| - | + | "deb [arch=$(dpkg --print-architecture) signed-by=/ | |
| - | apt-get update | + | $(lsb_release -cs) stable" |
| - | apt-get install docker-ce docker-ce-cli containerd.io | + | sudo apt update |
| + | sudo apt-get install docker-ce docker-ce-cli containerd.io | ||
| + | </ | ||
| - | #testing out | + | ===== Windows with WSL2 ===== |
| - | docker run hello-world | + | |
| - | </ | + | |
| - | ==== Windows 10 with WSL2 ==== | + | First install WSL according to the docs: https:// |
| + | then install docker Desktop as admin. | ||
| + | If the user is not admin, its needs to be added to a Group | ||