Introduction
In this lab, we will explore how to use the docker context inspect
command to view detailed information about Docker contexts. Docker contexts are essential for managing connections to different Docker daemons. We will begin by inspecting the default Docker context, which connects to the local daemon.
Following that, we will create a new context for demonstration purposes and then use docker context inspect
to examine its details by name. Finally, we will learn how to format the output of the inspect
command in different ways, specifically as JSON and using a Go template, to extract specific information about a context.