January 2019
Beginner to intermediate
352 pages
8h
English
After installing Docker on your machine, it will be time to run the containerized version of PostgreSQL. In order to do so, open a new Terminal window and launch the following command:
$ docker run --name postgres_springboot -e POSTGRES_PASSWORD=postgresPwd -e POSTGRES_DB=football_players_registry -d -p 5532:5432 postgres
This command triggers a pull from Docker's public registry for the PostgreSQL version labelled as the latest, downloading all of the layers that it needs to run the container on, as shown in the following code snippet:
Unable to find image 'postgres:latest' locallylatest: Pulling from library/postgres683abbb4ea60: Pull completec5856e38168a: Pull completec3e6f1ceebb0: Pull complete ...
Read now
Unlock full access