jesseduffield / jesseduffield/lazydocker

Launching LazyDocker in the Web interface

Open
#640 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
52.8k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

No

I want to express my gratitude for your project! I have been using it for quite a long time, and was also inspired by it to create a [TUI for journals](https://github.com/Lifailon/lazyjournal) with a similar name ;)

**Describe the solution you'd like**

Most often I use LazyDocker in the web interface via [ttyd](https://github.com/tsl0922/ttyd), so I would like to suggest optimizing the container assembly with the ability to run in the Web interface or adding a second assembly option (a separate image) and reporting it in the `README`.

Here's a simple example with basic auth support that I'm using now:

```Dockerfile
FROM golang:1.21-alpine3.20 AS build
RUN apk add --no-cache git
RUN git clone https://github.com/jesseduffield/lazydocker /lazydocker
WORKDIR /lazydocker
RUN go build -o /bin/lazydocker

FROM alpine:3.20
RUN apk add --no-cache ttyd docker-cli
COPY --from=build /bin/lazydocker /bin/lazydocker

ENTRYPOINT ["sh", "-c", "ttyd -W -p ${PORT} $( [ -n \"${USERNAME}\" ] && [ -n \"${PASSWORD}\" ] && echo \"-c ${USERNAME}:${PASSWORD}\" ) lazydocker"]
```

For ease of installation, I have published it on [Docker Hub](https://hub.docker.com/r/lifailon/lazydocker-web).

**Describe alternatives you've considered**

[isaiah](https://github.com/will-moss/isaiah) - self-hostable clone of lazydocker for the web. This is a great alternative! But the controls and functionality are still slightly different.

**Additional context**

![Image](https://github.com/user-attachments/assets/3b189d5f-1433-493e-bf62-972c35a24559)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.