Switch between hosts to remotely manage Docker containers in your browser.
748
Switch between hosts to remotely manage Docker containers in your browser.
This project was made possible by combining the capabilities of popular utilities. Realizing that this is mostly a hack, I don't see the point in isolating it into a separate repository, the source code for launching and building the image is available in the repository with notes.
Here is a demo - https://github.com/Lifailon/PS-Commands/blob/rsa/Docker-Compose/docker-web/docker-web-manager/README.md
The fzf interface is used to select and filter the host list, remote machines are accessed via Docker socket forwarding via the ssh protocol, containers and other Docker entities are managed using the lazydocker or ctop interfaces. All this runs in the browser, thanks to ttyd, with support for basic authorization (it is also possible to configure SSL or authorization via a Proxy server to secure the connection). The final image includes the docker-cli client, to be able to connect to the terminal of the selected container via the exec method.
Dockerfile yourself).To start the container, create a docker-compose.yaml file and use the image from Docker Hub:
services:
docker-web-manager:
image: lifailon/docker-web-manager:latest
container_name: docker-web-manager
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- $HOME/.ssh/id_rsa:/root/.ssh/id_rsa
env_file:
- .env
ports:
- "${WEB_PORT:-3333}:${WEB_PORT:-3333}"
Create a .env file and update the parameters to connect to remote hosts with Docker installed:
WEB_PORT=3333
WEB_USERNAME=
WEB_PASSWORD=
SSH_HOSTS=localhost,192.168.3.105,192.168.3.106
SSH_USER=lifailon
SSH_PORT=2121
DOCKER_CLIENT=lazydocker
# DOCKER_CLIENT=ctop
isaiah - independent and self-developed clone of lazydocker based on Go and JavaScript for the browser (therefore, some functions may not be available or work differently than in the original project). To manage containers on remote hosts, you need to install agents on the endpoints.
Content type
Image
Digest
sha256:c8175826c…
Size
44.8 MB
Last updated
12 months ago
docker pull lifailon/docker-web-manager