Skip to content

Instantly share code, notes, and snippets.

@ichux
Created October 7, 2024 05:52
Show Gist options
  • Save ichux/96e95a3af3086b3422da48ade151b729 to your computer and use it in GitHub Desktop.
Save ichux/96e95a3af3086b3422da48ade151b729 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "- lazydocker installation"
LAZYDOCKER_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazydocker/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')
curl -Lo lazydocker.tar.gz "https://github.com/jesseduffield/lazydocker/releases/latest/download/lazydocker_${LAZYDOCKER_VERSION}_Linux_x86_64.tar.gz"
tar -xvzf lazydocker.tar.gz> /dev/null 2>&1 && rm lazydocker.tar.gz
mv lazydocker /usr/local/bin/lazydocker && chmod a+x /usr/local/bin/lazydocker
echo "+ lazydocker installation"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment