mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-13 22:39:39 +00:00
This is mainly for testing. You can run with something like ``` docker run -v ~/.ssh/id_rsa.pub:/root/.ssh/authorized_keys -p 2222:22 -e TINI_SUBREAPER=1 --pid=host mobylinux/sshd:36c44542d8120e384c724a078e3e489f7a58382c ``` if you want to run in the host pid namespace. You must provide an authorized key, you may provide a host key. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
15 lines
226 B
Docker
15 lines
226 B
Docker
FROM alpine:edge
|
|
|
|
RUN \
|
|
apk update && apk upgrade && \
|
|
apk add --no-cache \
|
|
openssh-server \
|
|
tini \
|
|
&& true
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir -p /etc/ssh /root/.ssh && chmod 0700 /root/.ssh
|
|
|
|
CMD ["/sbin/tini", "/usr/bin/ssh.sh"]
|