Docker on Windows by Stoneman Elton

Docker on Windows by Stoneman Elton

Author:Stoneman, Elton [Stoneman, Elton]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2017-07-13T04:00:00+00:00

Managing application images

Docker Compose can manage Docker images as well as containers. In the Compose file, you can include attributes that tell Docker Compose how to build your images. You can specify the location of the build context to send to the Docker service, which is the root folder for all your application content—and the location of the Dockerfile.

The context path is relative to the location of the Compose file, and the Dockerfile path is relative to the context. This is very useful for complex source trees such as the demo source for this book, where the context for each image is in a different folder. In the ch06-docker-compose-build folder, I have a Compose file with all the build attributes specified.

This is how the build details are specified for my images:


image: dockeronwindows/ch06-nerd-dinner-db


context: ../ch06-nerd-dinner-db

dockerfile: ./Dockerfile



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Hello! Python by Anthony Briggs(8647)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(4752)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2129)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(1699)
The Old New Thing by Raymond Chen(1524)
Programming in C (4th Edition) (Developer's Library) by Stephen G. Kochan(1403)
Computers For Seniors For Dummies by Nancy C. Muir(1393)
MCSA Windows Server 2016 Study Guide: Exam 70-741 by William Panek(1318)
Database Reliability Engineering: Designing and Operating Resilient Database Systems by Campbell Laine & Majors Charity(1204)
Raspberry Pi Beginners Guide: Ultimate Guide For Rasberry Pi, User guide To Get The Most Out Of Your Investment, Hacking, Programming, Python, Best Hardware, Beginners Guide To Rasberry Pi by Steven Giles(1157)
RHCSA & RHCE Red Hat Enterprise Linux 7: Training and Exam Preparation Guide (EX200 and EX300), Third Edition by Asghar Ghori(1135)
Linux Phrasebook (Developer's Library) by Granneman Scott(1132)
Docker on Windows by Stoneman Elton(1121)
The Complete Windows 10 Privacy Guide: Windows 10 Fall Creators Update version by Martin Brinkmann(1121)
Mastering Docker - Second Edition by McKendrick Russ & Gallagher Scott(1118)
| by admin(1069)
Java Cookbook by Ian F. Darwin(1021)
Windows 7: The Missing Manual by Pogue David(1019)
Hacking: Computer Hacking Beginners Guide How to Hack Wireless Network, Basic Security and Penetration Testing, Kali Linux, Your First Hack by Alan T. Norman(1010)
Linux Device Drivers by Corbet Jonathan & Rubini Alessandro & Kroah-Hartman Greg(1007)