I don't have insight but I'm guessing the valuation comes from the prospects of enterprise sales.[1]
Also, Docker (the company) isn't staying still. We have to assume they will evolve to add future upmarket services on top of Docker that companies will pay for. Investors would see the PowerPoint slides for those future products but we as outsiders don't.
Maybe an analogous situation would be the Red Hat multi-billion valuation even though Linux kernel itself is free and open source.