Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Docker on Windows

You're reading from   Docker on Windows From 101 to production with Docker on Windows

Arrow left icon
Product type Paperback
Published in Feb 2019
Publisher Packt
ISBN-13 9781789617375
Length 428 pages
Edition 2nd Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Elton Stoneman Elton Stoneman
Author Profile Icon Elton Stoneman
Elton Stoneman
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Section 1: Understanding Docker and Windows Containers
2. Getting Started with Docker on Windows FREE CHAPTER 3. Packaging and Running Applications as Docker Containers 4. Developing Dockerized .NET Framework and .NET Core Applications 5. Sharing Images with Docker Registries 6. Section 2: Designing and Building Containerized Solutions
7. Adopting Container-First Solution Design 8. Organizing Distributed Solutions with Docker Compose 9. Orchestrating Distributed Solutions with Docker Swarm 10. Section 3: Preparing for Docker in Production
11. Administering and Monitoring Dockerized Solutions 12. Understanding the Security Risks and Benefits of Docker 13. Powering a Continuous Deployment Pipeline with Docker 14. Section 4: Getting Started on Your Container Journey
15. Debugging and Instrumenting Application Containers 16. Containerize What You Know - Guidance for Implementing Docker 17. Other Books You May Enjoy

Pushing and pulling images with a local registry

You can only push images to a registry if the image tag matches the registry domain. The process for tagging and pushing is the same as with Docker Hub, but you need to explicitly include the local registry domain in the new tag. These commands pull my registry server image from Docker Hub and add a new tag, making it suitable to be pushed to the local registry:

docker image pull dockeronwindows/ch04-registry:2e

docker image tag dockeronwindows/ch04-registry:2e registry.local:5000/infrastructure/registry:v2.6.2

The docker image tag command specifies the source tag first, and then the target tag. You can change every part of the image name for the new target tag. I've used the following:

  • registry.local:5000 is the registry domain. The original image name had an implied domain of docker.io.
  • infrastructure is the account name...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime