Understanding a plugin
So far, we have established that all the plugins that we have installed have actually nothing to do with Docker directly, so what does a plugin do?
Docker describes a plugin as:
"Docker plugins are out-of-process extensions which add capabilities to the Docker Engine."
This is exactly what we have seen when installing third-party tools, they all run alongside Docker as separate daemons.
Let's assume that we are going to be creating a volume plugin called mobyfs for the remainder of this chapter. The mobyfs plugin is a fictional service which is written in Go and it runs as a daemon.
Discovery
Typically, a plugin will be installed on the same host as the Docker binary. We can register our mobyfs plugin with Docker by creating the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access