add docker-proxy

This commit is contained in:
newnius 2017-02-25 16:29:49 +08:00
parent a56a83029c
commit dea8e39309
2 changed files with 13 additions and 0 deletions

9
docker-proxy/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM ubuntu
RUN apt update \
&& apt install -y openssh-server
RUN ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
RUN cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ADD bootstrap.sh /etc/bootstrap.sh
CMD ["bash", "/etc/bootstrap.sh"]

4
docker-proxy/bootstrap.sh Executable file
View File

@ -0,0 +1,4 @@
#! /bin/bash
/etc/init.d/ssh start
ssh -t -t -D 0.0.0.0:7001 -o StrictHostKeyChecking=no localhost