mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
v0.7.4, update docs
This commit is contained in:
parent
bbecbc66b9
commit
e1a52a314d
@ -7,7 +7,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- setup_remote_docker:
|
- setup_remote_docker:
|
||||||
version: 17.05.0-ce
|
version: 19.03.13
|
||||||
- run: make image
|
- run: make image
|
||||||
- deploy:
|
- deploy:
|
||||||
command: |
|
command: |
|
||||||
|
@ -20,7 +20,7 @@ Fetch the [latest release](https://github.com/bcicen/ctop/releases) for your pla
|
|||||||
#### Linux
|
#### Linux
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo wget https://github.com/bcicen/ctop/releases/download/v0.7.3/ctop-0.7.3-linux-amd64 -O /usr/local/bin/ctop
|
sudo wget https://github.com/bcicen/ctop/releases/download/v0.7.4/ctop-0.7.4-linux-amd64 -O /usr/local/bin/ctop
|
||||||
sudo chmod +x /usr/local/bin/ctop
|
sudo chmod +x /usr/local/bin/ctop
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ brew install ctop
|
|||||||
```
|
```
|
||||||
or
|
or
|
||||||
```bash
|
```bash
|
||||||
sudo curl -Lo /usr/local/bin/ctop https://github.com/bcicen/ctop/releases/download/v0.7.3/ctop-0.7.3-darwin-amd64
|
sudo curl -Lo /usr/local/bin/ctop https://github.com/bcicen/ctop/releases/download/v0.7.4/ctop-0.7.4-darwin-amd64
|
||||||
sudo chmod +x /usr/local/bin/ctop
|
sudo chmod +x /usr/local/bin/ctop
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -56,7 +56,9 @@ Build steps can be found [here][build].
|
|||||||
|
|
||||||
### Config file
|
### Config file
|
||||||
|
|
||||||
While running, use `S` to save the current filters, sort field, and other options to a default config path. These settings will be loaded and applied the next time `ctop` is started.
|
While running, use `S` to save the current filters, sort field, and other options to a default config path (`~/.config/ctop/config` on XDG systems, else `~/.ctop`).
|
||||||
|
|
||||||
|
Config file values will be loaded and applied the next time `ctop` is started.
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
@ -86,6 +88,7 @@ Option | Description
|
|||||||
| <kbd>o</kbd> | Open single view |
|
| <kbd>o</kbd> | Open single view |
|
||||||
| <kbd>l</kbd> | View container logs (`t` to toggle timestamp when open) |
|
| <kbd>l</kbd> | View container logs (`t` to toggle timestamp when open) |
|
||||||
| <kbd>e</kbd> | Exec Shell |
|
| <kbd>e</kbd> | Exec Shell |
|
||||||
|
| <kbd>c</kbd> | Configure columns |
|
||||||
| <kbd>S</kbd> | Save current configuration to file |
|
| <kbd>S</kbd> | Save current configuration to file |
|
||||||
| <kbd>q</kbd> | Quit ctop |
|
| <kbd>q</kbd> | Quit ctop |
|
||||||
|
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
# Build
|
# Build
|
||||||
|
|
||||||
To build `ctop` from source, ensure you have [dep](https://github.com/golang/dep) installed and run:
|
To build `ctop` from source, simply clone the repo and run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get github.com/bcicen/ctop && \
|
|
||||||
cd $GOPATH/src/github.com/bcicen/ctop && \
|
|
||||||
make build
|
make build
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -16,5 +14,8 @@ make image
|
|||||||
Now you can run your local image:
|
Now you can run your local image:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -ti --name ctop --rm -v /var/run/docker.sock:/var/run/docker.sock ctop
|
docker run --rm -ti \
|
||||||
|
--name ctop \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
ctop:latest
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user