Commit graph

102 commits

Author SHA1 Message Date
Jesse Duffield
23bb5692e4 appease linter 2022-01-12 23:12:54 +11:00
Jesse Duffield
e29e110476 refactor and add test 2022-01-09 18:05:58 +11:00
Charlie Moog
afe3d23cbd
refactor: kill tunnel cmd on Close 2022-01-08 15:09:08 -06:00
Charlie Moog
0bd4168dc9
override DOCKER_HOST environment variable directly
Rather than only overriding the Go docker client
configuration, we now override the process DOCKER_HOST so
as to properly configure docker-cli child processes.
2021-12-27 23:58:42 -06:00
Charlie Moog
892fc090b6
set pgid and send kill signal on exit 2021-12-26 09:41:43 -06:00
Charlie Moog
33e207aeac Merge branch 'master' into ssh-host 2021-11-26 10:12:18 -06:00
Charlie Moog
a2958c7820 code review changes 2021-11-26 10:10:02 -06:00
Jesse Duffield
503bf0c314
Merge pull request #265 from Dwarven/master 2021-11-26 21:49:13 +11:00
Jesse Duffield
9db6eeac9d do not panic if docker client not running 2021-11-26 20:50:06 +11:00
Charlie Moog
4e201bb8f4 feat: support ssh:// scheme for docker client host
Check for the presence of environment variable `DOCKER_HOST`. If nonempty
and of scheme `ssh://`, open an SSH tunnel to the specified remote host,
forwarding the remote docker socket to a local socket in /tmp. Then,
construct the lazydocker client from the local socket.

Example usage: `DOCKER_HOST=ssh://my-server lazydocker`

Fixes #244, #228, #255
2021-09-05 19:15:44 -05:00
Dwarven YANG
43f83f64ec allow user to configure the gui language 2021-08-30 09:54:55 +08:00
Jesse Duffield
1dd0875323 better alignment for health check 2020-09-23 20:16:04 +10:00
Jesse Duffield
386334b1f0
Merge pull request #201 from stirante/health-check
Add health check to container list
2020-09-23 20:15:42 +10:00
Jesse Duffield
cea67bc570 reduce cpu usage caused by tickers 2020-02-02 11:11:00 +11:00
Piotr Brzozowski
6adb04a364 Add changes from suggestions 2020-01-30 18:48:38 +01:00
stirante
0c2edc7c22 Run gofmt on container.go 2020-01-27 12:44:32 +01:00
stirante
305b9630a0 Add health check to container list 2020-01-27 11:53:17 +01:00
Dawid Dziurla
450d163040
commands: pass arguments inline
newer Docker releases has Opt struct instead of this func
2019-11-16 13:41:39 +01:00
Dawid Dziurla
168f63c2d5
Add missing imports 2019-11-11 12:01:08 +01:00
Paul Reichelt
d971621e66
Kill all related processes using windows internals
Use windows kernel32.dll to fetch all related processes.

Inspired by: https://blog.csdn.net/fyxichen/article/details/51857864
2019-11-11 11:38:44 +01:00
Paul Reichelt
bfd3df5354
Move Kill and PrepareForChildren to platform specific implementation 2019-11-11 11:38:43 +01:00
Harry White
b22b4801af Return error with stderr value
To maintain existing behaviour when not capturing stdout and stderr
2019-10-28 22:45:37 +11:00
Harry White
5d5ca0d3c4 Return only stdout from command
docker-compose outputs warning messages to stderr
2019-10-28 22:22:29 +11:00
skanehira
b1881e6c58 Improve container top
Check container state.
If container is not running then not call top api.
2019-08-26 08:19:03 +09:00
Dawid Dziurla
1258471af2
respect DOCKER_HOST 2019-08-25 19:09:24 +02:00
anjiawei
9f50809bcf add image to conatiner view.
Update issue: https://github.com/jesseduffield/lazydocker/issues/144

Co-Authored-By: Jesse Duffield <jessedduffield@gmail.com>
2019-08-06 19:52:06 +08:00
Jesse Duffield
4dc8f76083
Merge pull request #107 from jesseduffield/bulk-commands
Support bulk commands in each of the panels
2019-07-29 19:01:20 +10:00
Jesse Duffield
bd3ce66234 bump api version so that we can e.g. prune containers via the sdk
update api version in readme
2019-07-29 18:59:12 +10:00
Jesse Duffield
1f9f82601b support bulk commands in each of the panels 2019-07-29 18:59:07 +10:00
Dawid Dziurla
0c82a7089c
Merge pull request #132 from muesli/gocritic-fixes
Simplified code a bit
2019-07-19 11:08:04 +02:00
Christian Muehlhaeuser
78d7fda9ec
Simplified code a bit 2019-07-19 04:59:32 +02:00
Christian Muehlhaeuser
16b3eaedac
Simplified return and bool check code 2019-07-19 04:54:33 +02:00
Dawid Dziurla
bd16a78b06
Merge branch 'docker-sdk-update' 2019-07-08 14:44:51 +02:00
Dowideit, Sven (O&A, St. Lucia)
cdf075b00d Initial working demo
Signed-off-by: Dowideit, Sven (O&A, St. Lucia) <Sven.Dowideit@csiro.au>
2019-07-08 17:01:15 +10:00
Mark Kopenga
0ca9235220
Merge branch 'master' into f110 2019-07-07 14:33:03 +02:00
mjarkk
30a79faa49
Moved the filtering out of containers to the docker.go file 2019-07-07 14:19:35 +02:00
mjarkk
867459af56
Merge remote-tracking branch 'jesse/master' into fix-git-typo 2019-07-06 22:28:41 +02:00
mjarkk
fddbc7cdf8
Removed some lazygit code 2019-07-06 22:27:52 +02:00
mjarkk
b89b02eee5
Added h key binding 2019-07-06 21:20:21 +02:00
Dawid Dziurla
bb319ddb59
adjust code to newer API 2019-07-05 14:18:44 +02:00
Jesse Duffield
cd95ffce49
Merge pull request #97 from mjarkk/fix-94
Added rounding to timing (fixes #94)
2019-07-05 10:20:06 +10:00
mjarkk
74e8d6eb91
Added rounding to timeing 2019-07-04 21:25:49 +02:00
Jesse Duffield
bb74edab73 improve readability of colours 2019-07-02 20:40:38 +10:00
Derk Vedelaar
a5ff4d595c Repository with port does not show the correct image name 2019-07-02 08:57:04 +02:00
Jesse Duffield
836b814559
Merge pull request #37 from mjarkk/remove-dead-code
Removed some dead code
2019-07-01 20:00:02 +10:00
mjarkk
e3f6f59890
Removed some dead code 2019-07-01 09:56:05 +02:00
haoyun
0fe35ba5c5 fix strings.ReplaceAll() does't exist error while go version bellow 1.12 2019-07-01 14:18:11 +08:00
Jesse Duffield
5169356454 support light themes in terminals 2019-06-30 19:58:46 +10:00
Jesse Duffield
345f02eb11 fix nil pointer exception when trying to kill process 2019-06-30 18:24:59 +10:00
Jesse Duffield
4e86732cf2 support custom commands that filter down to service names 2019-06-29 21:29:35 +10:00