All Projects → bitbull-team → docker-exec-web-console

bitbull-team / docker-exec-web-console

Licence: other
A web UI to docker exec from the browser

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to docker-exec-web-console

dankdomain
🏰 Ɗaɳƙ Ɗoɱaiɳ :: the return of Hack & Slash
Stars: ✭ 25 (-62.12%)
Mutual labels:  xterm-js
hermes
Automates programmables à réaction aux échanges électroniques depuis une boîte IMAP4
Stars: ✭ 15 (-77.27%)
Mutual labels:  web-ui
editor.sh
Yet another live programming environment for collaborative code editing and running.
Stars: ✭ 29 (-56.06%)
Mutual labels:  xterm-js
Qmui web
An efficient front-end framework for developers building UI on the web.
Stars: ✭ 1,719 (+2504.55%)
Mutual labels:  web-ui
foxy-proxy
A Proof of Capacity proxy which supports solo and pool mining upstreams
Stars: ✭ 33 (-50%)
Mutual labels:  web-ui
proctor-webapp
Proctor-webapp is a web application for managing Proctor A/B test definitions.
Stars: ✭ 16 (-75.76%)
Mutual labels:  web-ui
iCtrl
UofT Engineering Lab Remote
Stars: ✭ 91 (+37.88%)
Mutual labels:  xterm-js
uniterm
🚧Universal Terminal Emulator, might be a great toy terminal front-end for geeks.
Stars: ✭ 22 (-66.67%)
Mutual labels:  xterm-js
UTMFW
UTM Firewall on OpenBSD
Stars: ✭ 104 (+57.58%)
Mutual labels:  web-ui
haskell-code-spot
Visual tool to spot odd runtime behaviour of Haskell programs.
Stars: ✭ 106 (+60.61%)
Mutual labels:  web-ui
Kafdrop
Kafka Web UI
Stars: ✭ 3,158 (+4684.85%)
Mutual labels:  web-ui
crowbar-core
Core deployment for Crowbar
Stars: ✭ 16 (-75.76%)
Mutual labels:  web-ui
shellbin
The source code of https://rshell.dev
Stars: ✭ 22 (-66.67%)
Mutual labels:  xterm-js
Wetty
Terminal in browser over http/https. (Ajaxterm/Anyterm alternative, but much better)
Stars: ✭ 3,076 (+4560.61%)
Mutual labels:  xterm-js
mighty-input
Text input for modern web
Stars: ✭ 20 (-69.7%)
Mutual labels:  web-ui
local-echo
A local-echo controller for xterm.js
Stars: ✭ 96 (+45.45%)
Mutual labels:  xterm-js
bloomery
Web UI for Impala
Stars: ✭ 15 (-77.27%)
Mutual labels:  web-ui
xterm-js-rs
Rust-WebAssembly bindings to the xterm-js Javascript library
Stars: ✭ 14 (-78.79%)
Mutual labels:  xterm-js
bashme
👨‍💻👩‍💻 The first command line interface about you
Stars: ✭ 32 (-51.52%)
Mutual labels:  xterm-js
graderjs
💦 Turn your full-stack NodeJS application into a downloadable cross-platform binary. Also works for SPAs, or regular web-sites.
Stars: ✭ 147 (+122.73%)
Mutual labels:  web-ui

docker exec web console

This image is originally inspirated by this gist.

The container use socat to bound Docker socket to a TCP port, so that I could avoid to change the http.Post part in the Go server to talk directly to a UNIX socket.

You can launch the container in this way:

docker run \
	--name docker-exec-web-console \
	-p 9999:8888 \
	-v /var/run/docker.sock:/var/run/docker.sock \
	bitbull/docker-exec-web-console

Then you can reach the console at the url http://localhost:9999

It's possible to pass a context path to which the container will responds, using CONTEXT_PATH environment variable:

docker run \
	--name docker-exec-web-console \
	-p 9999:8888 \
	-e "CONTEXT_PATH=/webconsole" \
	-v /var/run/docker.sock:/var/run/docker.sock \
	bitbull/docker-exec-web-console

With the above example, the console will be reachable at the url http://localhost:9999/webconsole

You can select the container to exec into passing its id directly via cid querystring parameter ( eg. http://localhost:9999?cid=<container id> ) or in the prompt that will show at page load.

You can pass the command to execute passing it via cmd querystring parameter ( eg. http://localhost:9999?cid=<container id>&cmd=/bin/sh ), otherwise it default to /bin/bash.

Build the image

The image is based on alpine:latest, so you need to compile the server for Linux with all libs statically linked:

CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .

then you can build as usual:

docker build -t bitbull/docker-exec-web-console .
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].