Does Docker work like this?

I am pretty new but based on what I have learned so far I drew up a simple diagram to display a simply idea of how I think docker works.

Is this how docker works?

submitted by /u/Zadique
[link] [comments]
Source: Reddit