Skip to Content
Docker: Up & Running
book

Docker: Up & Running

by Karl Matthias, Sean P. Kane
June 2015
Intermediate to advanced
227 pages
5h 58m
English
O'Reilly Media, Inc.
Content preview from Docker: Up & Running

Chapter 6. Exploring Docker

Now that we have some experience working with Docker containers and images, we can explore some of its other capabilities. In this chapter, we’ll continue to use the docker command-line tool to talk to the running docker daemon that you’ve configured, while visiting some of the other fundamental commands.

Docker provides commands to do a number of 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

Let’s take a look at some of those and some 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 virtual machine, 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 in your belt because the server and API are often not backwards compatible with older clients. Knowing how to show the version will help you troubleshoot certain types of connection issues. Note that this command actually talks ...

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

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Docker Fundamentals

Docker Fundamentals

Sreeprakash Neelakantan
Learning Docker

Learning Docker

Pethuru Raj, Jeeva S. Chelladhurai, Vinod Singh
Docker in Motion

Docker in Motion

Peter Fisher

Publisher Resources

ISBN: 9781491917565Errata Page