From d0f2128996f6d29ff47fd14509d957a4e4e13095 Mon Sep 17 00:00:00 2001 From: Iwasaki Yudai Date: Sun, 16 Aug 2015 22:28:10 -0700 Subject: [PATCH] Add Docker section to README --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dc28b86..f3b2323 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Download the latest binary file from the [Releases](https://github.com/yudai/got If you have a Go language environment, you can install gotty with the `go get` command. ```sh -go get github.com/yudai/gotty +$ go get github.com/yudai/gotty ``` # Usage @@ -45,17 +45,25 @@ Gotty starts a new process when a new client connects to the server. This means For example, you can start a new tmux session named `gotty` with `top` command by the command below. ```sh -gotty tmux new -A -s gotty top +$ gotty tmux new -A -s gotty top ``` This command doesn't allow clients to send keystrokes, however, you can attach the session from your local terminal and run operatitons like switching the mode of the `top` command. To connect to the tmux session from your terminal, you can use following command. -``` -tmux new -A -s gotty +```sh +$ tmux new -A -s gotty ``` By using terminal multiplexers, you can have the control of your terminal and allow clients to just see your screen. +## Playing with Docker + +When you want to create a jailed environment for each client, you can use Docker containers like following: + +```sh +$ gotty -w docker run -it --rm busybox +``` + # License The MIT License