Complete the command to start a PostgreSQL container named 'pg_local' with the latest image.
docker run --name pg_local -e POSTGRES_PASSWORD=mysecretpassword -d [1]The postgres:latest image is used to run a PostgreSQL database container.
Complete the command to map the container's port 5432 to the host's port 5433.
docker run -p [1]:5432 postgres
Mapping host port 5433 to container port 5432 allows accessing PostgreSQL on port 5433 locally.
Fix the error in the command to persist PostgreSQL data in a Docker volume named 'pgdata'.
docker run -v [1]:/var/lib/postgresql/data postgresThe volume name pgdata should be specified without slashes to mount correctly.
Fill both blanks to run a MySQL container with root password 'rootpass' and expose port 3307 on host.
docker run -e [1]=rootpass -p [2]:3306 mysql
Use MYSQL_ROOT_PASSWORD to set root password and map host port 3307 to container port 3306.
Fill all three blanks to create a Docker Compose service for PostgreSQL with volume and port mapping.
services:
db:
image: [1]
ports:
- "[2]:5432"
volumes:
- [3]:/var/lib/postgresql/dataThe service uses postgres:13 image, maps host port 5433 to container 5432, and mounts volume pgdata.