mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
Compare commits
8 Commits
222a7d77b2
...
59f00dd6aa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59f00dd6aa | ||
|
|
06265407b2 | ||
|
|
a08150ea9c | ||
|
|
6bf41ea05f | ||
|
|
3dff9970ad | ||
|
|
458ef62f80 | ||
|
|
a821deb3b4 | ||
|
|
dacd3be920 |
29
README.md
29
README.md
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
|
|
||||||
![release][release] ![homebrew][homebrew] ![macports][macports]
|
![release][release] ![homebrew][homebrew] ![macports][macports] ![scoop][scoop]
|
||||||
|
|
||||||
Top-like interface for container metrics
|
Top-like interface for container metrics
|
||||||
|
|
||||||
@@ -21,15 +21,23 @@ Fetch the [latest release](https://github.com/bcicen/ctop/releases) for your pla
|
|||||||
|
|
||||||
Maintained by a [third party](https://packages.azlux.fr/)
|
Maintained by a [third party](https://packages.azlux.fr/)
|
||||||
```bash
|
```bash
|
||||||
echo "deb http://packages.azlux.fr/debian/ buster main" | sudo tee /etc/apt/sources.list.d/azlux.list
|
sudo apt-get install ca-certificates curl gnupg lsb-release
|
||||||
wget -qO - https://azlux.fr/repo.gpg.key | sudo apt-key add -
|
curl -fsSL https://azlux.fr/repo.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/azlux-archive-keyring.gpg
|
||||||
sudo apt update
|
echo \
|
||||||
sudo apt install docker-ctop
|
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/azlux-archive-keyring.gpg] http://packages.azlux.fr/debian \
|
||||||
|
$(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/azlux.list >/dev/null
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install docker-ctop
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Arch
|
#### Arch
|
||||||
|
|
||||||
`ctop` is available for Arch in the [AUR](https://aur.archlinux.org/packages/ctop-bin/)
|
```bash
|
||||||
|
sudo pacman -S ctop
|
||||||
|
```
|
||||||
|
|
||||||
|
_`ctop` is also available for Arch in the [AUR](https://aur.archlinux.org/packages/ctop-bin/)_
|
||||||
|
|
||||||
|
|
||||||
#### Linux (Generic)
|
#### Linux (Generic)
|
||||||
|
|
||||||
@@ -53,6 +61,14 @@ sudo curl -Lo /usr/local/bin/ctop https://github.com/bcicen/ctop/releases/downlo
|
|||||||
sudo chmod +x /usr/local/bin/ctop
|
sudo chmod +x /usr/local/bin/ctop
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Windows
|
||||||
|
|
||||||
|
`ctop` is available in [scoop](https://scoop.sh/):
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
scoop install ctop
|
||||||
|
```
|
||||||
|
|
||||||
#### Docker
|
#### Docker
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -112,6 +128,7 @@ Option | Description
|
|||||||
[release]: https://img.shields.io/github/release/bcicen/ctop.svg "ctop"
|
[release]: https://img.shields.io/github/release/bcicen/ctop.svg "ctop"
|
||||||
[homebrew]: https://img.shields.io/homebrew/v/ctop.svg "ctop"
|
[homebrew]: https://img.shields.io/homebrew/v/ctop.svg "ctop"
|
||||||
[macports]: https://repology.org/badge/version-for-repo/macports/ctop.svg?header=macports "ctop"
|
[macports]: https://repology.org/badge/version-for-repo/macports/ctop.svg?header=macports "ctop"
|
||||||
|
[scoop]: https://img.shields.io/scoop/v/ctop?bucket=main "ctop"
|
||||||
|
|
||||||
## Alternatives
|
## Alternatives
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ func (s *Status) setState(val string) {
|
|||||||
case "created":
|
case "created":
|
||||||
mark = "◉"
|
mark = "◉"
|
||||||
case "running":
|
case "running":
|
||||||
mark = "⏵"
|
mark = "▶"
|
||||||
color = ui.ThemeAttr("status.ok")
|
color = ui.ThemeAttr("status.ok")
|
||||||
case "exited":
|
case "exited":
|
||||||
mark = "⏹"
|
mark = "⏹"
|
||||||
|
|||||||
Reference in New Issue
Block a user