Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 616 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 616 Bytes

docker-ubuntu-ssh

Minimal docker container based on ubuntu (phusion-image) with sudoless deployment user and ssh access, as well as root access.

Works with ENV variables:

# Deploy user login, default to 'ituser'
SSH_USER=${SSH_USER:-ituser}

# Deploy user password, default to login
SSH_PASSWORD=${SSH_PASSWORD:-$SSH_USER}

# contains string of public ssh key
SSH_AUTHORIZED_KEYS=${SSH_AUTHORIZED_KEYS:-ituser}

How to run a container

docker run -d --env 'SSH_USER=jmeyo' --env 'SSH_PASSWORD=jmeyo' --env "SSH_AUTHORIZED_KEYS=$(cat ~/.ssh/id_rsa.pub)" jmeyo/docker-ubuntu-ssh-my