7 comments

[ 1.9 ms ] story [ 21.1 ms ] thread
If I have two Docker instances, with a common base image containing e.g. libc.so, then will those two instances share libc's memory? When Docker moves from AUFS to BtrFS, will it share the memory there also?

Edit: I ask because the idea of getting 100-1000 instances on a single machine is attractive, but seems like it might be difficult to achieve in reality...

I believe so, AUFS and BtrFS are for storing the images to disk, which is different then shared memory, so changing those shouldn't affect it.
Would docker be well suited for a testing platform? Thinking about maybe using docker to stand up a database instance that can be instantiated quickly and blown away after test cases are executed, seems like it would be a perfect use case for something like docker since manually restoring a db backup for testing can take several minutes.
It's also great for testing clusters on a single VM. I've been using it for playing around with different mongodb configurations. Being able to instantly start, stop, and fork server images is pretty amazing. Also very nice being able to replay commands from the cache, so downloading and building a bunch of packages only has to work once. It doesn't do anything that you couldn't do with virtual machines or ec2 images, it's just so much faster and lighter weight it's kind of like the difference between having to compile your code after every change and having live reload. Much better for your productivity.
Do you have plans for a 32 bit docker? I would like to try with my django applications but I have to reinstall my Linux because it's only 32 bit.