Run
lazydocker
in a Docker container and serve output over http usingttyd
docker run -it --name lazydocker --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v ./config.yml:/root/.config/lazydocker/config.yml -p 7681:7681 mattpowell/lazydocker-web
git clone https://github.com/mattpowell/lazydocker-web.git
cd lazydocker-web
docker compose up -d
Mounting config.yml
is only needed if you want to override something, otherwise the default configuration will be used.
The config.yml
that's checked in to this repo contains an override to show the last 200 lines of logs instead of showing the last 60min of logs.