Sign inSign up

atrobertoflores/webtty

By atrobertoflores

Updated over 5 years ago

Image
0

235

atrobertoflores/webtty repository overview

Web TTY Container

This image is intended to be used for accessing the console from the browser.

Image Contents

  • ttyd - ttyd is a simple command-line tool for sharing terminal over the web.
Variables

You can specify the following variables:

  • TTY_USER=<access_user>
  • TTY_PASSWORD=<access_password>
How-to use it

Run:

$ docker run -d --name webtty --restart always -u `id -u`:`id -g` -p 7681:7681 atrobertoflores/webtty

Open a browser and see the demo at http://<server>:7681 with user/password "alpine/alpine"

Run Docker in Docker:

$ docker run -d --name webtty -u `id -u`:`id -g` -p 7681:7681 -v /var/run/docker.sock:/var/run/docker.sock atrobertoflores/webtty

Inside container install docker (as root): https://docs.docker.com/engine/install/ubuntu/

$ DOCKER_VERSION=20.10.0 \
  && curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz \
  && tar xzvf docker-${DOCKER_VERSION}.tgz --strip 1 \
  -C /usr/local/bin docker/docker \
  && rm docker-${DOCKER_VERSION}.tgz

Test docker (as alpine):

$ sudo docker ps

Improving security:

Change alpine password:

$ passwd

On DockerHub / GitHub


Thanks


This is based on the container by https://github.com/raonigabriel > https://github.com/raonigabriel/web-terminal.

Tag summary

Content type

Image

Digest

Size

7.8 MB

Last updated

over 5 years ago

docker pull atrobertoflores/webtty