5 ms·
Doesn't this approach make users send 1GB+ Docker images instead of small 5-10MB .jar files?
by valarauca1 12y ago
Doesn't this approach make users send 1GB+ Docker images instead of small 5-10MB .jar files?
- jdoliner 12y agoUseful Docker images can actually be made quite a bit smaller than 1GB+ by using small distros like busybox and following best practices such as cleaning up temporary data between commits. That being said this is a legitimate concern because it affects how tight a developers loop is so it's something we'll probably have to address longterm.
- coffeemug 12y agoThat sounds relatively easy to fix. I'd imagine a diff between two Docker images is relatively small compared to the size of the image. I'd imagine a deduplication scheme based on widely available tools (e.g. rsync) would solve this problems fairly easily. (Though I have no idea how hard it would be to implement; it doesn't sound too hard off the top of my head)
- jdoliner 12y agoThis is a very good point. In addition Docker itself tries to address this by using btrfs's diffing. Like a lot of things in Docker it's not perfect but it's getting there.