January 2019
Intermediate to advanced
520 pages
14h 32m
English
The image we built has been stored in Docker and we can see it using the docker images command:
REPOSITORY TAG IMAGE ID CREATED SIZEusers-microservice latest 4b6fc8aa6f1b 7 minutes ago 2.3GBrust nightly 91e52fb2cea5 3 hours ago 1.67GB
To start the microservice from an image, use the following command:
docker run -it --rm -p 8080:8000 users-microservice
The container with the microservice instance will start but it won't work since we haven't run a container with a database instance. We won't connect containers manually, since it's part of the subtleties of Docker usage, and you can read about that in Docker's documentation; however, we will learn how to connect containers with the Docker Compose tool later in this chapter, ...
Read now
Unlock full access