This Docker image is a full Debian Linux environment running GoTTY, which allows you to access a TTY inside the container from your web browser.
docker run -p 8080:8080 richardcarls/remotedev
A GoTTY instance is available on port 8080 running /bin/login
by default. Check the container log for the generated root password to login, or supply one with -e ROOT_PASSWORD
.
docker run -e LOGIN_UID=`id myuser -u` -p 8080:8080 richardcarls/remotedev
By specifying LOGIN_UID
, the init script creates a user in the container for login. The sudo
command is available inside the container and the user is automatically added to the sudo
group. The default user name dev
can be overriden with -e LOGIN_NAME
. Check the log for the generated login password, or specify one with -e LOGIN_PASSWORD
.
docker run -v /some/host/directory:/userdata -p 8080:8080 richardcarls/remotedev
/userdata
is symlinked to the container user's $HOME
(or /root
if running as root). If LOGIN_UID
is not specified, the uid of the mounted host directory is used to create the login user. The init script does not modify permissions on this folder so it should be safe to mount your local home directory.
By default, gotty runs /bin/login
and reads default options from a provided .gotty
configuration file in /userdata. The default config allows browser client write (--permit-write
) and reconnect (--reconnect
, --reconnect-timeout=10
). You may override these and supply other gotty options via docker command, environment variables, or a custom .gotty
config in your mounted /userdata directory.
The below packages are included on top of the base debian image:
acl
bash-completion
curl
git
gpg
pwgen
nano
sudo
tmux
wget
You can specify additional packages to install at container start by setting -e INSTALL_PACKAGES
.
docker run -v /some/host/directory:/userdata -e INSTALL_PACKAGES="emacs-nox nodejs" -p 8080:8080 richardcarls/remotedev
Provide the path to a startup script to run with -e STARTUP_EXEC
(relative to $HOME).
docker run -v /some/host/directory:/userdata -e STARTUP_EXEC="your-startup-script.sh" -p 8080:8080 richardcarls/remotedev
- Remove openssh, add curl to image
- Fixed entrypoint point line-endings
- Swtich to using debian:latest
- Bump gotty to latest version 1.0.1
- Expose a second port (useful to run a dev server)
- Added startup script hok
- Added package install hook
- Some default packages
Initial release