Hey y'all, this message will probably get Deon's attention =)
So I would like to know how to spin up a docker container on SSH
connection. Here's what I wanna do...
user ssh's to server like so;
ssh user@server -p 1234
when user authenticates, a docker container is spun up dynamically, and
then the user is dropped into the shell of said container. User does
*stuff* and then when they exit the shell, it logs them off the server completely, as if they were just connecting to a server.
The idea behind this is that i don't want to give access to the server,
but the docker container, as I am trying to create a new CTF challenge
and what I have currently is that you can connect to the container
fine, and I have it automatically rebuilding every 30 minutes so that
whatever foo someone does inside it is reset so another person can have
a clean image to work from, but I feel it would be better to spin up a
new container on connection, and then delete it once they log off.
Any help or advice would be much appreciated here.
If you wanna try out my little challenge, you can do so here;
ssh 
user@www.erb.pw -p 1337
(password = 'userpass' (no quotes))
Feedback on this would be appreciated.
-- 
Best regards,
MeaTLoTioN
--- Mystic BBS/NNTP v1.12 A43 2019/03/02 (Linux/64)
 * Origin: The Quantum Wormhole, Ramsgate, UK. bbs.erb.pw (1337:1/101)