Bradley Cicenas
222a7d77b2
Squashed commit of the following:
...
commit 9968c504a5
Author: Florian Vahl <florian@flova.de>
Date: Tue Feb 1 00:37:31 2022 +0100
Fix formating (Spaces -> Tabs)
commit 6b8840647e
Author: Florian <florian@flova.de>
Date: Tue Feb 1 00:27:44 2022 +0100
Use better duration formating
commit 815dc6ec84
Author: Florian <florian@flova.de>
Date: Tue Feb 1 00:27:04 2022 +0100
Fix date formating in 'created' col
commit 05b17798f8
Author: Florian <florian@flova.de>
Date: Tue Feb 1 00:26:08 2022 +0100
Add fix from #275 for uptime of running containers
2022-03-30 14:13:10 -04:00
DasSkelett
163060b3fa
Update runc to 1.1.0 to get newer x/sys and fix Go 1.18 build ( #292 )
...
* Update runc to 1.1.0 to get newer x/sys
...to fix building on Darwin with Go 1.18.
This required some code changes as opencontainers unfortunately introduced breaking changes in a minor revision.
However, those changes were to simpify the libcontainer factory initialization.
* Switch CircleCI image to cimg/go, update remote Docker version to 20.10
2022-03-23 13:46:40 -04:00
Florian Vahl
350cb09338
Fix cpu count estimation ( #281 )
...
* Fix query for the number of cpu cores.
* Fix formating
* Fix formating again...
2021-12-29 11:56:22 -05:00
Bradley Cicenas
be23d85eda
Merge remote-tracking branch 'stokito/browser'
2021-10-24 10:40:43 -04:00
Bradley Cicenas
9f8f38f9d7
Merge remote-tracking branch 'remotes/stokito/events_filter'
2021-06-11 14:04:53 -04:00
Frol Kryuchkov
99be3b979e
#254-handling-with-wrong-log-format
2021-06-11 17:22:34 +03:00
Bradley Cicenas
a603c1b58c
Merge remote-tracking branch 'remotes/stokito/uptime'
2021-06-10 22:01:45 -04:00
Sergey Ponomarev
77c9001ed1
optimize health_status event handling
2021-02-04 09:37:44 +02:00
Sergey Ponomarev
d98ce102b1
Filter events
2021-02-04 09:22:57 +02:00
Sergey Ponomarev
dd92e85d45
Open in browser
...
Most containers expose some http port. We can open it in browser.
For simplicity we can just open first container's published port.
We'll determine the ip:port on container creation and store to meta "Web Port".
To open browser on any platform was added a new dependency github.com/pkg/browser which is very small
2020-12-12 21:21:53 +02:00
Sergey Ponomarev
f2c28c5fb0
#243 Fix bug: show ENV variables
...
Previously only last env variable is shown
2020-12-09 23:06:14 +02:00
Sergey Ponomarev
948e7cc9d0
docker_logs.go use SplitN(2)
2020-11-26 12:08:36 +02:00
Sergey Ponomarev
6c662d91fb
docker.go shortName() use TrimPrefix()
2020-11-25 19:17:07 +02:00
Sergey Ponomarev
b4a63f8c60
docker_logs.go: use time.RFC3339Nano constant
2020-11-24 22:19:29 +02:00
bradley
117c3bc7b5
Merge pull request #234 from stokito/refresh
...
docker connector: refresh() delete container only if it not found but keep on failures
2020-11-22 19:00:31 -05:00
Sergey Ponomarev
f377dcaee2
#207 Replace scaleCpu option with dedicated column CPU Scaled
...
The new column is disabled by default.
2020-11-20 23:08:19 +02:00
Sergey Ponomarev
65e9c6dff6
docker connector: refresh() delete container only if it not found but keep on failures
...
If inspect() call was failed due to connection problems then container will be removed anyway as like ot wasn't found.
This is probably almost never happens in real life but still some missed logic bug
2020-11-20 19:44:09 +02:00
Sergey Ponomarev
df0d8b7892
#187 "created" action is handled separately in watchEvents()
2020-11-20 19:26:02 +02:00
Sergey Ponomarev
ba126e6e7c
events handling: early skipping of extremely frequent exec_* events
...
The exec_create, exec_start, exec_die and other events are generated by health checks
2020-11-18 23:04:29 +02:00
Sergey Ponomarev
009201ed0c
actionToStatus: catch more generic die instead of kill
2020-11-18 23:04:29 +02:00
Sergey Ponomarev
4c280cee56
Improve docker events handling: separate channel for status updates
...
Instead of calling a heavy inspect api call we can easily changing status just by knowing an action.
Let's do this in a separate channel decouple UI update from basic event loop.
2020-11-17 22:00:03 +02:00
Sergey Ponomarev
b65e970a83
Improve docker events handling
...
Firstly check health updates because it will be a lot of them especially when a container is unstable.
Clearly handle create event to create a container even if it wasn't started.
Instead of die event handle more precise events like oom, kill and only then trigger refresh.
Lookup the state from a map.
2020-11-17 21:50:25 +02:00
Sergey Ponomarev
957cabba2d
docker.go: watchEvents() optimize actionName extraction
...
Split(e.Action, ":") creates and array but we can avoid this.
2020-11-17 12:06:34 +02:00
Sergey Ponomarev
5aacdc3772
docker.go: logging of events
...
Add log.IsEnabledFor(logging.DEBUG) guard to avoid unnecessary memory allocations. Debug level is usually disabled.
Inline "destroy"
2020-11-17 11:42:45 +02:00
Bradley Cicenas
99d9aeec98
set running = false when mock,runc collectors stopped
2020-11-13 21:43:11 +00:00
bradley
44600fca45
Merge pull request #201 from vcmkrtchyan/master
...
Fix freeze when container is started/stopped multiple times
2020-11-13 16:42:16 -05:00
Sergey Ponomarev
3a29c94833
Use percent() function to calc CPU usage
2020-11-13 11:02:14 +02:00
Sergey Ponomarev
c984b270db
#135 Add uptime column
2020-10-26 16:32:51 +02:00
Bradley Cicenas
c0703db094
add health check to mock connector
2020-10-26 12:02:31 +00:00
Bradley Cicenas
53ec5c911a
return static error on unimplemented manager actions
2020-10-26 11:38:17 +00:00
Bradley Cicenas
c5038e2edd
aggregate io r/w across all reported stats volumes
2020-10-25 17:42:20 +00:00
Bradley Cicenas
03a0da3230
update go version, deps for runc v1.0.0-rc92
2020-10-25 14:22:47 +00:00
Vahe Mkrtchyan
4a0e80ffdf
Fix freeze when container is started/stopped multiple times
2020-07-23 15:23:19 +04:00
Bradley Cicenas
4b391e900c
use raw log stream in docker log collector
2019-11-06 07:32:29 -05:00
Bradley Cicenas
0a5a4c9062
add multi-line scrolling support, timestamps to error view
2019-05-22 17:38:01 +00:00
Bradley Cicenas
98fcfe8b6f
refactor connectors for retry logic, add error view
2019-05-22 16:58:55 +00:00
Bradley Cicenas
c1d4615cc0
Merge branch 'fr05t1k-exec'
2019-05-12 16:26:51 -04:00
Bradley Cicenas
d187e8c623
drop potentially empty initial frames during exec attach
2019-05-12 20:23:54 +00:00
Bradley Cicenas
d7384db373
Merge branch 'exec' of https://github.com/fr05t1k/ctop into fr05t1k-exec
2019-05-12 15:31:33 -04:00
CodeLingo Bot
b401e7b17e
Fix function comments based on best practices from Effective Go
...
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
2019-03-07 02:33:29 +00:00
Stanislav Pavlovichev
101ddad692
Fixed a problem with rendering
2018-10-28 13:43:24 +02:00
Stanislav Pavlovichev
d59c91a461
Do not allow to close /dev/stdin
2018-10-26 17:08:33 +03:00
bartfokker
8a0bd3cf8a
remove unneeded cast
2018-10-25 22:22:28 +02:00
bartfokker
4d247f5272
replace unkeyed fiels with keyed fields when instantiating log struct
2018-10-25 22:17:05 +02:00
bartfokker
4d48245d7d
improve boolean logic
2018-10-25 22:12:17 +02:00
bartfokker
6bee1b7f31
remove unneeded select for simple channel receive
2018-10-25 22:11:17 +02:00
Stanislav Pavlovichev
967a87a65f
Exec using API
2018-10-13 08:33:53 +03:00
Serhii Bilonozhko
9a185b2388
env-var
2018-10-05 17:35:22 -04:00
Jean-Philippe
a72d43526f
add IP of networks in single view mode
2018-09-06 21:01:16 +02:00
xiechengsheng
f7a3d38d6b
add more commands in container manager menu
...
Signed-off-by: xiechengsheng <XIE1995@whut.edu.cn>
2018-06-22 15:41:16 +08:00