Chapter 6. Exploring Docker
Now that you have some experience working with containers and images, we can explore some of Docker’s other capabilities. In this chapter, we’ll continue to use the docker command-line tool to talk to the running dockerd server that you’ve configured while visiting some of the other fundamental commands.
Docker provides commands to do several additional things easily:
-
Printing the Docker version
-
Viewing the server information
-
Downloading image updates
-
Inspecting containers
-
Entering a running container
-
Returning a result
-
Viewing logs
-
Monitoring statistics
-
And much more…
Let’s take a look at these as well as some of the additional community tooling that augments Docker’s native capabilities.
Printing the Docker Version
If you completed the last chapter, you have a working Docker daemon on a Linux server or VM, and you’ve started a base container to make sure it’s all working. If you haven’t set that up already and you want to try out the steps in the rest of the book, you’ll want to follow the installation steps in Chapter 3 before you move on with this section.
The absolute simplest thing you can do with Docker is print the versions of the various components. It might not sound like much, but this is a useful tool to have because Docker is built from a multitude of components whose versions will directly dictate what functionality is available to you. Knowing how to show the version will also help you troubleshoot certain types of ...
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