Tuesday, May 29, 2018

Docker Cruft

I've been working on a docker project this weekend. I toy around with docker, and sometimes I have to expound its benefits to customers.

So I have this pet project. I call it subtitler and subtitler-ui. One is a node-red implementation of a file streamer that talks to Watson and gets back speech to text results and formats it into either SRT or VTT format. The second is a UI to drive the backend node-red stuff.

Over the weekend I wanted to dockerize them.

That wasn't too bad. But there were dozens of builds and false starts. I was actually trying to do something that is considered a bad practice in Docker, which is to have both processes running in a single container. I didn't get very far with that, so I left it as two containers.

What amazed me this morning when I went to push to docker hub is how much cruft there was in my docker system.  Dozens and dozens of image files.

There must be a simple way to manage these and clear them out. Do I even need them? I don't know. I should read up more I guess.