mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
Add automated install-update steps for Linux
This commit is contained in:
parent
750437d572
commit
c1764d81b6
1 changed files with 13 additions and 1 deletions
14
README.md
14
README.md
|
|
@ -38,7 +38,19 @@ brew install lazydocker
|
||||||
|
|
||||||
### Binary Release (Linux/OSX)
|
### Binary Release (Linux/OSX)
|
||||||
|
|
||||||
You can download a binary release [here](https://github.com/jesseduffield/lazydocker/releases).
|
You can manually download a binary release from [the release page](https://github.com/jesseduffield/lazydocker/releases).
|
||||||
|
|
||||||
|
Automated install/update:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
GITHUB_LATEST_VERSION=$(curl -L -s -H 'Accept: application/json' https://github.com/jesseduffield/lazydocker/releases/latest | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/')
|
||||||
|
GITHUB_FILE="lazydocker_${GITHUB_LATEST_VERSION//v/}_$(uname -s)_$(uname -m).tar.gz"
|
||||||
|
GITHUB_URL="https://github.com/jesseduffield/lazydocker/releases/download/${GITHUB_LATEST_VERSION}/${GITHUB_FILE}"
|
||||||
|
wget -O lazydocker.tar.gz $GITHUB_URL
|
||||||
|
tar xzvf lazydocker.tar.gz lazydocker
|
||||||
|
sudo mv -f lazydocker /usr/local/bin/
|
||||||
|
rm lazydocker.tar.gz
|
||||||
|
```
|
||||||
|
|
||||||
### Go
|
### Go
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue