Last active
September 14, 2017 19:00
-
-
Save chrisguitarguy/497301c60409cc70ee8589298a7f232b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN apt-get update -y && apt-get -y install openssh-client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
server: | |
build: | |
context: . | |
dockerfile: server.dock | |
client: | |
build: | |
context: . | |
dockerfile: client.dock | |
command: "/bin/bash -c 'while :; do sleep 1000; done'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-compose up -d | |
docker-compose exec client ssh sshuser@server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nodered/node-red-docker:latest | |
USER root | |
RUN apt-get update -y \ | |
&& apt-get -y install openssh-server \ | |
&& adduser --disabled-password --gecos '' sshuser \ | |
&& echo sshuser:password | chpasswd \ | |
&& mkdir /var/run/sshd | |
EXPOSE 22 | |
CMD ["/bin/sh", "-c", "/usr/sbin/sshd && npm start -- --userDir /data"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment