Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.48 KB

README.md

File metadata and controls

56 lines (37 loc) · 1.48 KB

mondedie/openssh

openssh

Tag available

Features

  • Based on Alpine Linux
  • Multi-platform image: linux/386, linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64

Ports

  • Default: 2222 (configurable)

Volume

  • /home/${USER} : Mount this on your home directory
  • /etc/ssh/keys : To save server keys

Environment variables

Variable Description Type Default value
UID openssh user id optional 991
GID openssh user id optional 991
USER openssh user name optional openssh

Usage

Build image

docker build -t mondedie/openssh:latest https://github.com/mondediefr/docker-openssh.git

Run your openssh server

docker run -it --rm \
  -e UID=1000 \
  -e GID=1000 \
  -e USER=user \
  -v /home/user:/home/user \
  mondedie/openssh:latest

License

Docker image mondedie/openssh is released under MIT License.