Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung | |||
| knowledge_base:linux:docker:setup [2024/02/14 10:54] – add kali explanation 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 |
| - | ===== by OS ===== | + | ===== Debian 10 ===== |
| - | + | ||
| - | ==== CentOS 7 ==== | + | |
| - | + | ||
| - | Install docker with | + | |
| - | + | ||
| - | <code bash> | + | |
| - | sudo yum install docker-engine | + | |
| - | </ | + | |
| - | + | ||
| - | Install docker-compose (from [[https:// | + | |
| - | + | ||
| - | <code bash> | + | |
| - | sudo curl -L " | + | |
| - | sudo chmod +x / | + | |
| - | </ | + | |
| - | + | ||
| - | Start docker | + | |
| - | <code bash> | + | |
| - | service docker start | + | |
| - | </ | + | |
| - | + | ||
| - | ==== Debian 10 ==== | + | |
| https:// | https:// | ||
| Zeile 42: | Zeile 20: | ||
| </ | </ | ||
| - | on kali this needs to be manually edited to debian bookworm | + | on kali the apt source |
| < | < | ||
| Zeile 49: | Zeile 27: | ||
| </ | </ | ||
| - | ==== Ubuntu ==== | + | ==== non-root user ==== |
| + | |||
| + | ‼ This is basically equivalent to sudo rights! Be careful! | ||
| + | |||
| + | < | ||
| + | sudo groupadd docker | ||
| + | sudo usermod -aG docker $USER | ||
| + | </ | ||
| + | |||
| + | ===== Ubuntu | ||
| https:// | https:// | ||
| <code bash> | <code bash> | ||
| - | sudo apt-get install | + | sudo apt-get install ca-certificates curl gnupg lsb-release |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| curl -fsSL https:// | curl -fsSL https:// | ||
| echo \ | echo \ | ||
| Zeile 64: | Zeile 47: | ||
| $(lsb_release -cs) stable" | $(lsb_release -cs) stable" | ||
| sudo apt update | sudo apt update | ||
| - | sudo apt-get install docker-ce docker-ce-cli containerd.io | + | sudo apt-get install docker-ce docker-ce-cli containerd.io |
| </ | </ | ||
| - | + | ===== Windows with WSL2 ===== | |
| - | ==== Windows with WSL2 ==== | + | |
| First install WSL according to the docs: https:// | First install WSL according to the docs: https:// | ||
| Zeile 75: | Zeile 57: | ||
| If the user is not admin, its needs to be added to a Group | If the user is not admin, its needs to be added to a Group | ||
| - | ===== No-Root ===== | ||
| - | |||
| - | < | ||
| - | sudo groupadd docker | ||
| - | sudo usermod -aG docker $USER | ||
| - | </ | ||
| - | |||
| - | ===== See also ===== | ||
| - | |||
| - | * [[knowledge_base: | ||