# Lazydocker installieren

[![image.png](https://wiki.folkerts.it/uploads/images/gallery/2025-09/scaled-1680-/image.png)](https://wiki.folkerts.it/uploads/images/gallery/2025-09/image.png)

[https://github.com/jesseduffield/lazydocker#installation](https://github.com/jesseduffield/lazydocker#installation)

## Variante 1: Leicht (Offizielles Skript)

```bash
# Installationsskript mit bash ausführen
curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash

# Checken wo lazydocker liegt (dauert, kann man auch skippen):
find / -name lazydocker 2>/dev/null

# Pfad zur .bashrc pflegen:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
```

danach CLI neustarten!

## Variante 2: Schwer (Brew)

[https://brew.sh](https://brew.sh)

Falls root, vorher neuen Sudo-User anlegen, ansonsten gibt das Brew-Installationsskript 'Don't run this as root!' zurück:

```bash
sudo adduser [username]
usermod -aG sudo [username]
id [username] | grep sudo
su [username]
```

brew installieren:

```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

zu bashrc hinzufügen (USERNAME ersetzen):

```
echo >> /home/USERNAME/.bashrc
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/USERNAME/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
```

Nähere Infos:

```
==> Next steps:
- Run these commands in your terminal to add Homebrew to your PATH:
    echo >> /home/pl-admin/.bashrc
    echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/pl-admin/.bashrc
    eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
- Install Homebrew's dependencies if you have sudo access:
    sudo apt-get install build-essential
  For more information, see:
    https://docs.brew.sh/Homebrew-on-Linux
- We recommend that you install GCC:
    brew install gcc
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh
```

Lazydocker installieren:

> Normally `lazydocker` formula can be found in the Homebrew core but we suggest you to tap our formula to get frequently updated one. It works with Linux, too.

**Tap**:

```
brew install jesseduffield/lazydocker/lazydocker
```

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" id="bkmrk--2"><div class="zeroclipboard-container"><svg aria-hidden="true" class="octicon octicon-copy js-clipboard-copy-icon" data-view-component="true" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg></div></div>**Core**:

```
brew install lazydocker
```

oder

```
brew install gcc
brew install --build-from-source lazydocker
```