# [Java Intermediate] Self-research 1 <br> "*Deploy Containerized Database using Docker*" :::success **References**: - https://hevodata.com/learn/docker-postgresql/ ::: ## Install `🐳 Docker` using `winget` and create `PostgreSQL` container 1. Download and install **Docker** ```bash winget install docker ``` 2. Create a container (*virtual machine*) which runs `PostgreSQL` - Download a **PostgreSQL image** from DockerHub: ```bash docker pull postgres ``` - ```bash docker run --name $CONTAINER_NAME -e POSTGRES_PASSWORD=$PASSWORD -d postgres ``` There are some items you need to replace: - `$CONTAINER_NAME`: Define your own container name (***Eg**: `my-postgres`*) - `$PASSWORD`: Your password of admin account to log in ## Run and create some data on containerized PostgreSQL