Dennis Hermsmeier 279065bbec
quote root env
2018-05-22 08:35:14 +02:00
2017-10-18 08:55:58 +02:00
2018-05-21 19:32:06 +02:00
2018-05-22 08:35:14 +02:00
2017-10-18 17:28:34 +02:00

Make your OpenSSH fly on Alpine

Overview

Use this Dockerfile / -image to start a sshd-server upon a lightweight Alpine container.

Features

  • Always installs the latest OpenSSH-Version available for Alpine
  • Password of "root"-user can be changed when starting the container using --env

Basic Usage

$ docker run --rm \
--publish=1337:22 \
--env ROOT_PASSWORD=MyRootPW123 \
hermsi/alpine-sshd

After the container is up you are able to ssh in it as root with the in --env provided password for "root"-user.

$ ssh root@mydomain.tld -p 1337

Use with docker-compose

I built this image in order to use it along with a nginx and fpm-php container for transferring files via sftp. If you are interested in a Dockerfile which fulfills this need: this way

Description
No description provided
Readme 61 KiB
Languages
Shell 88.7%
Dockerfile 11.3%