- latest (Dockerfile)
- Based on Alpine Linux
- Multi-platform image:
linux/386
,linux/amd64
,linux/arm/v6
,linux/arm/v7
,linux/arm64
- Default: 2222 (configurable)
- /home/${USER} : Mount this on your home directory
- /etc/ssh/keys : To save server keys
Variable | Description | Type | Default value |
---|---|---|---|
UID | openssh user id | optional | 991 |
GID | openssh user id | optional | 991 |
USER | openssh user name | optional | openssh |
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
Docker image mondedie/openssh is released under MIT License.