Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Docker Quick Start Guide
Docker Quick Start Guide

Docker Quick Start Guide: Learn Docker like a boss, and finally own your applications

eBook
$9.99 $25.99
Paperback
$32.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Docker Quick Start Guide

Learning Docker Commands

In this chapter, we will learn some essential Docker commands. While we focus on one of the most important commands, the container run command, we will also cover many other commands that you will be using every day. These commands include the list container command, the stop container command, and the remove container command. Along the way, we will also discover other container commands such as logs, inspect, stats, attach, exec, and commit. I think you will find this chapter to be an excellent foundation for Docker education.

BIC: The Bureau of International des Containers was founded in 1933 as a neutral, non-profit, international organization whose mission is to promote the safe, secure, and sustainable expansion of containerization and intermodal transportation.

By the end of this chapter, you will know the following:

  • The current and previous command...

Technical requirements

Information about command syntax

Before we dive into learning about Docker commands and their many options, I want to inform you of a change to the Docker CLI that happened in January 2017.

The number of commands and associated options have been increasing with each new release of Docker. Docker decided that the complexity this was creating needed to be addressed. So, with the release of Docker version 1.13 (Docker also changed the version numbing scheme in 2017), the CLI commands have been divided into management functional groups. For example, there is now a container management group of commands, and an image management group of commands. This changes how you run Docker commands. Here is an example of the use of the old and new run command:

# the new command syntax...
docker container run hello-world
# the old command syntax...
docker run hello-world

This change provides better...

The version command

You have already used the docker --version command as a quick test to confirm that Docker was installed. Now try the command without the dashes:

docker version

This version of the command gives you greater detail about the version of Docker installed on your system. It is worth noting that the docker-compose command, which we will talk about later, also has two versions of the version command—one with the dashes providing a single-line response, and one without the dashes that delivers more details.

Remember that all the Docker commands have a rich help system built in. Try it by entering any part of a Docker command and using the --help parameter. For example, docker container run --help.

The Docker run command

Since we will be using the run command a lot, we should take a look at that now. You have already used the run command in its most basic form:

# new syntax
# Usage: docker container run [OPTIONS] IMAGE [COMMAND] [ARG...]
docker container run hello-world

# old syntax
docker run hello-world

This command tells Docker that you want to run a container based on the image described as hello-world. You may be asking yourself, did the hello-world container image get installed when I installed Docker? The answer is no. The docker run command will look at the local container image cache to see whether there is a container image that matches the description of the requested container. If there is, Docker will run the container from the cached image. If the desired container image is not found in the cache, Docker will reach out to a Docker registry to try to download the...

Summary

In this chapter, we learned about Docker image descriptions and a little about Docker registries. Then we saw that there is another form of the version command. After that, we explored a lot of Docker container commands, including run, stop, ls, logs, top, stats, attach, exec, and the commit command. Finally, we found out how to expose your containers by opening ports from your host and to your containers. You should feel pretty good about what you can do with Docker already, but hang on—in Chapter 3, Creating Docker Images, we are going to show you how to create your own Docker images with a Dockerfile and the image build command. If you're ready, turn the page.

References

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Learn Docker installation on different types of OS
  • Get started with developing Docker images
  • Use Docker with your Jenkins CI/CD system

Description

Docker is an open source software platform that helps you with creating, deploying, and running your applications using containers. This book is your ideal introduction to Docker and containerization. You will learn how to set up a Docker development environment on a Linux, Mac, or Windows workstation, and learn your way around all the commands to run and manage your Docker images and containers. You will explore the Dockerfile and learn how to build your own enterprise-grade Docker images. Then you will learn about Docker networks, Docker swarm, and Docker volumes, and how to use these features with Docker stacks in order to define, deploy, and maintain highly-scalable, fault-tolerant multi-container applications. Finally, you will learn how to leverage Docker with Jenkins to automate the building of Docker images and the deployment of Docker containers. By the end of this book, you will be well prepared when it comes to using Docker for your next project.

Who is this book for?

This guide is for anyone who needs to make a quick decision about using Docker for their next project. It is for developers who want to get started using Docker right away.

What you will learn

  • Set up your Docker workstation on various platforms
  • Utilize a number of Docker commands with parameters
  • Create Docker images using Dockerfiles
  • Learn how to create and use Docker volumes
  • Deploy multi-node Docker swarm infrastructure
  • Create and use Docker local and remote networks
  • Deploy multi-container applications that are HA and FT
  • Use Jenkins to build and deploy Docker images

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 29, 2018
Length: 230 pages
Edition : 1st
Language : English
ISBN-13 : 9781789341317
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 29, 2018
Length: 230 pages
Edition : 1st
Language : English
ISBN-13 : 9781789341317
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 136.97
Docker Quick Start Guide
$32.99
Docker Cookbook
$48.99
Mastering Docker
$54.99
Total $ 136.97 Stars icon
Banner background image

Table of Contents

9 Chapters
Setting up a Docker Development Environment Chevron down icon Chevron up icon
Learning Docker Commands Chevron down icon Chevron up icon
Creating Docker Images Chevron down icon Chevron up icon
Docker Volumes Chevron down icon Chevron up icon
Docker Swarm Chevron down icon Chevron up icon
Docker Networking Chevron down icon Chevron up icon
Docker Stacks Chevron down icon Chevron up icon
Docker and Jenkins Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7
(12 Ratings)
5 star 91.7%
4 star 0%
3 star 0%
2 star 0%
1 star 8.3%
Filter icon Filter
Top Reviews

Filter reviews by




Amazon Customer Oct 20, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
It's easy follow. and very good to practice basic.
Amazon Verified review Amazon
JK Mar 23, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is down to earth and full of actually executable commands with output screen shots. No fluff. I have just started using Docker at work for containerizing apps for K8s, and I could use this book back and forth to see if what I am doing is correct. In fact I learnt k8s pv and pvc concepts easily from reading chapter 4 of this book 'Docker Volumes'.Chapter 5 & 7 I did not use much because I am already on k8s and I did not go deeper into Chapter 6 because I am not a networking guy. The last chapter 'Docker and Jenkins', I am yet to read but it is not a top priority thing for me as our DevOps/CICD teams take care of that. I am a developer and all that I wanted I got from Chapters 1 to 4. Chapter 3 'Creating Docker Images' specifically is a power packed one.I would definitely say, one can buy this book blindly, if you are really interested in hands on docker learning.Thanks Mr.Earl Waud, Great Book!
Amazon Verified review Amazon
MM Oct 12, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
He is a best writer . Make the concept very easy. He wrote it with easy English and very organized way. I made my concept clear in a single read. He is super Genius writer. He knows about the reader's mind. He also knows how to make easy of any hard concept.
Amazon Verified review Amazon
Marjan Khan Jan 15, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is an invaluable resource to get up to speed with containers. I have been working with VMware for the past 10 years, but more and more I am seeing containers take hold in the provisioning of software. I knew of containers to the extend that I could download a container and use what it offered, but did not really know how to build my own let alone persist changes, mount volumes, and setup networking.I recently had to build a custom tool to aid in a migration and rather than reach to building a dedicated VM, I opted to build it in a docker container. Not only was I able to iterate over multiple revisions of the tool quickly, but I also found that deploying into production was far easier, faster, and more secure thanks to the far smaller footprint containers offered. Without the aid of this book I am sure that I would have spent a lot more time in this endeavor and may have just opted to using a VM. I am very glad I did not :) I have found this book to be a great resource, clearly explaining all of the aspects of docker containers that I needed to kickstart my journey into the world of Docker, and I am sure you will too. ( Two Thumbs Up !! )
Amazon Verified review Amazon
Ben Weston Apr 07, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
At just 214 pages (including index) you wouldn't expect much from such a small book except perhaps a high level overview of the topics. However this is not the case. The book is absolutely packed with good information and doesn't waste a single page. Starting with initial setup & basic commands, you'll be shown best practice methods on how to create & manage containers using Docker, but it goes far deeper than that. Advanced concepts such as practical & easy to follow examples on third-party (remote) network drivers are explored. There is a LOT of information to take in for such a small book, so if you're looking for the maximum amount of info for the best value & smallest footprint I highly recommend this.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.