News for hackers. Stuff that matters.
Re:Dockersh – a shell that puts users into individual docker... by TeMPOraL on Wednesday August 27, 2014 @09:54AM (#8232076)
Interesting. I'll take some time to learn it over the weekend. Right now at work I use the following solution to keep a shell running on containers:

https://gist.github.com/TeMPOraL/3d134ce0d4a2b2f4232b

Basically, it starts a screen instance with a shell and your script running side by side, so when you Docker-attach to it, you can C-a " to shell.

run.sh would be the script you want to be run in container - the one that starts your webserver, database, whatever.

I adapted a screen solution from some random StackOverflow comment.

There are no comments on this comment yet.