cp0204/ttydbridge

By cp0204

Updated 4 months ago

A DockerApp makes it easy to use the host terminal in the web | 轻松在网页中使用主机终端

Image
Security
Developer tools
4

100K+

cp0204/ttydbridge repository overview

logo

ttydBridge

English | 简体中文

Docker containers based on ttyd bypass the isolation mechanism.

A "bridge" to the host environment, allowing you to easily use the host terminal in your browser.

docker tag docker pulls docker image size

Usage

Run the container:

docker run -d \
  --name ttydbridge \
  -e PORT=2222 \
  -v /opt:/opt \
  --pid host \
  --privileged \
  --restart unless-stopped \
  cp0204/ttydbridge:latest

Access the web terminal via http://yourhost:2222 and login with your system user.

Environment

NameDefaultDescription
EXEC_DIR/optProgram execution dir, must be consistent with volume mappings, DO NOT MODIFY if you don't understand
START_COMMANDloginttyd initial command, login uses system authentication, bash enters directly
PORT2222Web port
ALLOW_WRITEtrueAllow terminal input
HTTP_USERNAME HTTP_PASSWORDHTTP basic authentication, effective when set at the same time
ENABLE_SSLfalseEnable SSL (https)
SSL_CERT SSL_KEY SSL_CAHost certificate paths, effective when ENABLE_SSL=true
ENABLE_IPV6falseEnable IPv6 support
AUTO_ALLOW_PORTfalseAutomatically allow web ports

Donate

Enjoyed the project? Consider buying me a coffee - it helps me keep going!

WeChatPay

Thank

  • ttyd : Share your terminal over the web

Tag summary

Content type

Image

Digest

sha256:764cdda01

Size

5.2 MB

Last updated

4 months ago

docker pull cp0204/ttydbridge