Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between storage driver and graphdriver in docker?

Tags:

docker

So, what is the difference between storage driver and graphdriver in docker? I can not find any useful information through google. Is there anyone can help me? thanks!

like image 334
leo Avatar asked Sep 19 '18 10:09

leo


1 Answers

Where are containerd’s graph drivers?

The above blog post by Michael Crosby has some interesting information which might help you, because it describes the history / evolution of things and how he and Solomon Hykes designed and implemented them.


My summary before you read the whole article:

(used parts of the blog post will be in italics)

  • containerd is the container runtime used by Docker
  • "The short answer is that containerd does not have graph drivers"
  • To find the term graph drivers you will have to go back to Docker 0.8 timeframe
  • Snapshotters to the rescue: Fast forward 3 years in the future and it was time to rethink how graph drivers worked with containers. As part of the containerd work, we had the time to hit the breaks and fix some of these long standing issues.
  • In the end, snapshotters are an evolution of graph drivers. We set out to fix the long standing issues with graph drivers that users were facing and fix them in a way that we can support for years to come.
like image 165
tgogos Avatar answered Sep 27 '22 20:09

tgogos