Skip to Content
Mastering Spring Cloud
book

Mastering Spring Cloud

by Piotr Mińkowski
April 2018
Intermediate to advanced content levelIntermediate to advanced
432 pages
10h 38m
English
Packt Publishing
Content preview from Mastering Spring Cloud

Building an image

In the previous section, we pushed the copy of the Postgres Docker image to a Docker Hub registry. Usually, we push our own images created from the file  Dockerfile, which defines all the instructions required when installing and configuring software on the container. The details related to the structure of Dockerfile will be discussed later. What is important for now, though, is the command used for building a Docker image,  docker build. This command should be run in the same directory where Dockerfile is located. When building a new image it is recommended to set its name and tag using the -t option. The following command creates the image piomin/order-service , tagged with a 1.0 version. The image may be pushed to your ...

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.
Start your free trial

You might also like

Microservices with Spring Boot and Spring Cloud - Second Edition

Microservices with Spring Boot and Spring Cloud - Second Edition

Magnus Larsson

Publisher Resources

ISBN: 9781788475433Supplemental Content