@@ -20,28 +20,68 @@ Install the `docker-debug` cli
2020
2121** mac brew**
2222``` shell
23- brew tap zeromake/docker-debug
24- brew install docker-debug
23+ brew install zeromake/docker-debug/docker-debug
2524```
2625
2726** download binary file**
28- ``` shell
29- # MacOS
30- curl -Lo docker-debug https://github.com/zeromake/docker-debug/releases/download/v0.7.4/docker-debug-darwin-amd64
27+
28+ <details >
29+ <summary >
30+ <kbd >use bash or zsh</kbd >
31+ </summary >
32+
33+ ``` bash
34+ # get latest tag
35+ VERSION=` curl -w ' %{url_effective}' -I -L -s -S https://github.com/zeromake/docker-debug/releases/latest -o /dev/null | awk -F/ ' {print $NF}' `
36+
37+ # MacOS Intel
38+ curl -Lo docker-debug https://github.com/zeromake/docker-debug/releases/download/${VERSION} /docker-debug-darwin-amd64
39+
40+ # MacOS M1
41+ curl -Lo docker-debug https://github.com/zeromake/docker-debug/releases/download/${VERSION} /docker-debug-darwin-arm64
3142
3243# Linux
33- curl -Lo docker-debug https://github.com/zeromake/docker-debug/releases/download/v0.7.4 /docker-debug-linux-amd64
44+ curl -Lo docker-debug https://github.com/zeromake/docker-debug/releases/download/${VERSION} /docker-debug-linux-amd64
3445
3546chmod +x ./docker-debug
3647sudo mv docker-debug /usr/local/bin/
3748
3849# Windows
39- curl -Lo docker-debug.exe https://github.com/zeromake/docker-debug/releases/download/v0.7.4 /docker-debug-windows-amd64.exe
50+ curl -Lo docker-debug.exe https://github.com/zeromake/docker-debug/releases/download/${VERSION} /docker-debug-windows-amd64.exe
4051```
4152
53+ </details >
54+
55+ <details >
56+ <summary >
57+ <kbd >use fish</kbd >
58+ </summary >
59+
60+ ``` fish
61+ # get latest tag
62+ set VERSION (curl -w '%{url_effective}' -I -L -s -S https://github.com/zeromake/docker-debug/releases/latest -o /dev/null | awk -F/ '{print $NF}')
63+
64+ # MacOS Intel
65+ curl -Lo docker-debug https://github.com/zeromake/docker-debug/releases/download/$VERSION/docker-debug-darwin-amd64
66+
67+ # MacOS M1
68+ curl -Lo docker-debug https://github.com/zeromake/docker-debug/releases/download/$VERSION/docker-debug-darwin-arm64
69+
70+ # Linux
71+ curl -Lo docker-debug https://github.com/zeromake/docker-debug/releases/download/$VERSION/docker-debug-linux-amd64
72+
73+ chmod +x ./docker-debug
74+ sudo mv docker-debug /usr/local/bin/
75+
76+ # Windows
77+ curl -Lo docker-debug.exe https://github.com/zeromake/docker-debug/releases/download/$VERSION/docker-debug-windows-amd64.exe
78+ ```
79+ </details >
80+
81+
4282download the latest binary from the [ release page] ( https://github.com/zeromake/docker-debug/releases/lastest ) and add it to your PATH.
4383
44- Try it out!
84+ ** Try it out!**
4585``` shell
4686# docker-debug [OPTIONS] CONTAINER COMMAND [ARG...] [flags]
4787docker-debug CONTAINER COMMAND
0 commit comments