Loading...

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:

nerd-dinner-db:

image: dockeronwindows/ch06-nerd-dinner-db

build:

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

dockerfile: ./Dockerfile

...



Download



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(8576)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(4706)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2120)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(1687)
The Old New Thing by Raymond Chen(1509)
Programming in C (4th Edition) (Developer's Library) by Stephen G. Kochan(1384)
Computers For Seniors For Dummies by Nancy C. Muir(1380)
MCSA Windows Server 2016 Study Guide: Exam 70-741 by William Panek(1307)
Database Reliability Engineering: Designing and Operating Resilient Database Systems by Campbell Laine & Majors Charity(1193)
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(1143)
RHCSA & RHCE Red Hat Enterprise Linux 7: Training and Exam Preparation Guide (EX200 and EX300), Third Edition by Asghar Ghori(1123)
Linux Phrasebook (Developer's Library) by Granneman Scott(1119)
Docker on Windows by Stoneman Elton(1112)
Mastering Docker - Second Edition by McKendrick Russ & Gallagher Scott(1107)
The Complete Windows 10 Privacy Guide: Windows 10 Fall Creators Update version by Martin Brinkmann(1106)
| by admin(1055)
Java Cookbook by Ian F. Darwin(1013)
Windows 7: The Missing Manual by Pogue David(1009)
Hacking: Computer Hacking Beginners Guide How to Hack Wireless Network, Basic Security and Penetration Testing, Kali Linux, Your First Hack by Alan T. Norman(1003)
Linux Device Drivers by Corbet Jonathan & Rubini Alessandro & Kroah-Hartman Greg(999)