Blog logotrial and stderr

Brandon Istenes

Docker out of space

 •  Filed under docker

Check out this crazy pernicious and largely ignored Docker issue from 2014. All the time, I'm trying to docker build something on my big Ubuntu box and I get no space left on device.

And then I SSH into the machine, run df -h -i and see that yes, indeed, I have like 20 free inodes.

First attempt at solving is docker system prune [-a][-f]

Second is

sudo service docker stop && \
 sudo rm -r /var/lib/docker && \
 sudo services docker start

I'm using AUFS. People have the same issue with Overlay and Overlay2. Some report that BTRFS doesn't have this issue. I'll try that out and report back.

NodeJS Considered

 •  Filed under nodejs

NodeJS pros:

  • Share code between server and client

NodeJS cons:

  • Writing more Javascript

My latest gripe is with all the amazingly unintuitive behavior encountered while using Sinon. Sinon is a mocking framework, which is a kind of thing that interacts subtly with the nature of objects and modules and names in a programming language. In Python, these things are pretty easy to reason about, making mocking a breeze. I've been wrestling with Sinon for a few days now and am still being surprised by the contortions necessary to get mocks to work in the unfamiliar jungle of the Javascript module and name-binding system.