File size: 474 Bytes
065fee7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# syntax=docker/dockerfile:1

ARG API_VERSION=1.44
ARG ENGINE_VERSION=25.0

FROM docker:${ENGINE_VERSION}-dind

RUN apk add --no-cache --upgrade \
    openssh

COPY tests/ssh/config/server /etc/ssh/

# set authorized keys for client paswordless connection
COPY tests/ssh/config/client/id_rsa.pub /root/.ssh/authorized_keys

# RUN echo "root:root" | chpasswd
RUN chmod -R 600 /etc/ssh \
 && chmod -R 600 /root/.ssh \
 && ln -s /usr/local/bin/docker /usr/bin/docker
EXPOSE 22