Docker_Pshitt/README.md

15 lines
568 B
Markdown
Raw Permalink Normal View History

2018-08-22 00:24:24 +02:00
# Docker_Pshitt
2018-08-22 01:09:01 +02:00
- based on ubuntu:18.04
2018-08-22 01:09:35 +02:00
- weight: 519MB
2018-08-22 01:09:01 +02:00
2018-08-22 00:40:42 +02:00
## Build the container:
2018-08-22 00:37:59 +02:00
docker build -t pshitt_dockerized .
2018-08-22 00:40:42 +02:00
## run the container:
2018-08-22 00:37:59 +02:00
docker run -d -v /etc/ssh:/srv/pshitt/_HOST_SSH_KEYS -v /pshitt/_LOG:/srv/pshitt/_LOG --name pshitt_dockerized -p 2222:2222 pshitt_dockerized
notes:
2018-08-22 00:40:42 +02:00
1. the ssh keys used are the same of the host, this is wanted, to avoid using pshitt's default which are always the same thus easily identifiable
2. the logs are written on the local fs in /pshitt/_LOG
2018-08-22 01:09:01 +02:00
3. the port on which pshitt listens is redirected on the host and is 2222