Fixed Docker regarding no size window with gocui

- Runs the container with `/bin/sh` initially
- Invoke `lazydocker` from within the container, or gocui fails as the terminal window is invalid at launch
pull/36/head
Quentin McGaw 5 years ago
parent ceb8cfcd76
commit 330131b6ca

@ -24,6 +24,5 @@ LABEL org.label-schema.schema-version="1.0.0-rc1" \
org.label-schema.vcs-description="The lazier way to manage everything docker" \
org.label-schema.docker.cmd="docker run -it -v /var/run/docker.sock:/var/run/docker.sock lazydocker" \
org.label-schema.version=${VERSION}
RUN apk --update add -q --progress --no-cache -U git xdg-utils
ENTRYPOINT [ "lazydocker" ]
ENTRYPOINT [ "/bin/sh" ]
COPY --from=builder /go/src/github.com/jesseduffield/lazydocker/lazydocker /usr/bin/lazydocker

@ -97,6 +97,8 @@ go get github.com/jesseduffield/lazydocker
docker run -it -v /var/run/docker.sock:/var/run/docker.sock lazydocker
```
1. Then enter `lazydocker`
## Usage
Call `lazydocker` in your terminal. I personally use this a lot so I've made an alias for it like so:

Loading…
Cancel
Save