Comments (5)
Perhaps we could change:
cli, err := client.NewEnvClient()
to
cli, err := client.NewClientWithOpts(client.WithVersion("1.24"))
Would need some testing.
from lazydocker.
@dawidd6 thank you for replay.
Do this change:
--- a/pkg/commands/docker.go
+++ b/pkg/commands/docker.go
@@ -61,7 +61,7 @@ func (c *DockerCommand) NewCommandObject(obj CommandObject) CommandObject {
// NewDockerCommand it runs git commands
func NewDockerCommand(log *logrus.Entry, osCommand *OSCommand, tr *i18n.TranslationSet, config *config.AppConfig, errorChan chan error) (*DockerCommand, error) {
- cli, err := client.NewEnvClient()
+ cli, err := client.NewClientWithOpts(client.WithVersion("1.24"))
if err != nil {
return nil, err
}
$
Then build failed:
$ CGO_ENABLED=0 GOOS=linux go build
# github.com/jesseduffield/lazydocker/pkg/commands
pkg/commands/docker.go:64:14: undefined: client.NewClientWithOpts
pkg/commands/docker.go:64:39: undefined: client.WithVersion
from lazydocker.
@warmchang thanks for testing.
Well it seems like, lazydocker is using a very old release of Go Docker SDK and godoc.org is showing the documentation for newer API. Will need to dig this deeper.
from lazydocker.
@warmchang would be great if you could test this PR: #102
I would do that myself, but CentOS 7 has already 1.13.1
version of Docker.
from lazydocker.
@dawidd6 I made a quick test with PR #102 , it works fine! π
[root@paas-controller-10-200-20-120:/home/ubuntu]$ docker version
Client:
Version: 1.12.6
API version: 1.24
Go version: go1.7.5
Git commit: 2e3ea0a2a31be47d1baacde97b3a68e3ce32a8ab
Built: 2019-06-06 20:56:02
OS/Arch: linux/amd64
Server:
Version: 1.12.6
API version: 1.24
Go version: go1.7.5
Git commit: 2e3ea0a2a31be47d1baacde97b3a68e3ce32a8ab
Built: 2019-06-06 20:56:02
OS/Arch: linux/amd64
[root@paas-controller-10-200-20-120:/home/ubuntu]$
[root@paas-controller-10-200-20-120:/home/ubuntu]$ ./lazydocker --help
lazydocker - The lazier way to manage everything docker
https://github.com/jesseduffield/lazydocker
Flags:
--version Displays the program version string.
-h --help Displays help with available flag, subcommand, and positional value parameters.
-c --config Print the current default config
-d --debug a boolean
-f --file Specify alternate compose files
[root@paas-controller-10-200-20-120:/home/ubuntu]$
[root@paas-controller-10-200-20-120:/home/ubuntu]$ ./lazydocker
ββProjectββββββββββββββββββββββββββββββββAboutββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βubuntu ββ _ _ _ β
ββββββββββββββββββββββββββββββββββββββββ | | | | | | β
ββContainersββββββββββββββββββββββββββββ | | __ _ _____ _ __| | ___ ___| | _____ _ __ β
βrunning storage ββ | |/ _` |_ / | | |/ _` |/ _ \ / __| |/ / _ \ '__| β
βrunning pronoea ββ | | (_| |/ /| |_| | (_| | (_) | (__| < __/ | β
βrunning sqm ββ |_|\__,_/___|\__, |\__,_|\___/ \___|_|\_\___|_| β
βrunning prometheus ββ __/ | β
βrunning op-ubs-dbtools ββ |___/ β
βrunning eventmgt ββ β
βrunning zenap_kms ββ β
βrunning toposerver ββCopyright (c) 2019 Jesse Duffield β
βrunning fm_mgt ββ β
βrunning keybox ββKeybindings: https://github.com/jesseduffield/lazydocker/blob/master/docs/kβ
ββββββββββββββββββββββββββββββββββββββββ β
ββImagesββββββββββββββββββββββββββββββββConfig Options: https://github.com/jesseduffield/lazydocker/blob/master/docβ
βswr:6666/admin/vnm ββ β
βswr:6666/admin/keybox ββRaise an Issue: https://github.com/jesseduffield/lazydocker/issues β
βswr:6666/admin/logapiserver ββ β
βswr:6666/admin/zindexer ββBuy Jesse a coffee: https://donorbox.org/lazydocker β
βswr:6666/admin/manager-cert ββ β
βswr:6666/admin/utm ββHere's your lazydocker config when merged in with the defaults (you can opeβ
βswr:6666/admin/zenap_msb_apigateway ββ β
βswr:6666/admin/fm_mgt ββgui: β
βswr:6666/admin/nats ββ scrollHeight: 2 β
ββββββββββββββββββββββββββββββββββββββββ scrollPastBottom: false β
ββVolumesβββββββββββββββββββββββββββββββ mouseEvents: false β
βlocal 792da32c8fe1ab3a8b2a8b00878cd01ββ theme: β
βlocal aabff1e4eb52c563bad9758001b71e3ββ activeBorderColor: β
β ββ - green β
β ββ - bold β
β ββ inactiveBorderColor: β
β ββ - default β
β ββ optionsTextColor: β
β ββ - blue β
β ββ showAllContainers: false β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
PgUp/PgDn: scroll, esc/q: close, x: menu, β β β β: navigate Donate lazydocker unversioned
from lazydocker.
Related Issues (20)
- Update version execution error: could not determine host context "default" does not exist HOT 12
- Docker image missing 1.20-3.15 HOT 4
- Changed DOCKERFILE with existing hub image
- After running lazydocker, docker completely breaks and it starts to require root permissions HOT 2
- Cannot install on Debian 5.10.197-1 via curl .sh HOT 2
- Custom Colors/Theme Config
- Possibility to configure different servers to manage the Dockers and have then split on "tabs" HOT 4
- Request: View only mode
- Enhance Image Section with Active Use Indicator HOT 2
- Connecting to remote docker host over ssh is broken
- XDG base directory specification is not described in the config docs
- Config options for side panel visibility / size HOT 1
- Rounded Corners
- can't install following README instructions HOT 1
- Installing on arch linux using yay fails HOT 3
- Can I pass a flag to set the Project Name to something ?
- Cannot proceed until docker gives us more information about the container. Please retry in a few moments.
- Move the panel with number like lazygit
- Container log colors
- Selectable Logs/Stats/Env/Config/Top HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lazydocker.