I haven't yet figured out how to spawn a new image for every connection and then despawn it upon quitting, but that is my goal at some point to figure that.
So you shouldnt need to rebuild the image with a new challenge (although
I dont really understand what you are trying to do).
when you start the stack or service, so "docker stop" or "kill 1" (from
The reason i would like it like that is so any changes, scripts, whatever someone does when logged in, are all gone so that if someone else logs in later, it's fresh ready for them to start that challenge without anything being messed with.
Currently I have it set on a cronjob to kill and rebuild the container
Hmm a "kill 1" from inside sounds reasonable-ish... I could make it do that upon logout, so that when they log in again it will be fresh and not have to restart it every hour... but if 2 people are logged in at the same time, and one logs out, it will kill the progress of the other user... so hmm, not sure how to proceed with this yet.
You mean "restart" right? Shouldnt need to "build" it... My point
earlier is the "built container" has the app inside, and know when it is started, to create (what ever it needs to create) to be unique from the last time it was started.
There is a tool on github called dockersh - I did try to use it (about
2-3 years ago now), but couldnt at the time. But it should do what you need, but you might need to tweak it.
On an incoming ssh connection, it should be able to spawn a container
(and thus it does initialisation of uniqueness), connect the user to
that instance, and when they leave it kills it. Each incoming connection would get it's own container.
No it actually rebuilds it. the reason why I do that, is because i want it to be cleaned up in case someone logs in and say deletes something, adds something, etc etc, I want it to be clean ready for the next person to use.
You dont need to do that.
An image cannot be permanently changed (during running a container).
An image is used to start a container - which is what your users will be attaching to.
Try it, run a container, "rm -rf <a bunch of files>", then start a new container from the same image, and you'll see that those files are still there.
that might be better, now to figure that out.
Hey y'all,
If you're interested in having a go I have 2 challenges created so far, I anticipate having around 10 or so but the first 2 are ready for someone tohave a go at. I would love some feedback so I can determine whether they'retoo easy or too hard or if you have any suggestions for more challenges.
I'm over here reading the wiki@pages connected with cake... and duh, Paulie... just look. I'm 'stuck' @ user04, but I'm sure I'll get to sniffing it out...Searched all yer message bases hunting for hints. :P
I'm gonna get you!
The message bases do hold the clues, for one challenge at least. I think it's what you're after for progressing.
Ping me if you still are stuck =)
Christian aka MeaTLoTioN
Sysop: | Saxainden |
---|---|
Location: | Littleton, CO |
Users: | 30 |
Nodes: | 10 (0 / 10) |
Uptime: | 14:12:10 |
Calls: | 357 |
Calls today: | 2 |
Messages: | 37,313 |