added podman info to postgres
This commit is contained in:
@@ -47,6 +47,20 @@ host all all ::1/128 ident
|
||||
|
||||
Make sure the last item on each line (in this case `ident`) is changed to `md5`. Then restarted the database `sudo systemctl restart postgresql.service`
|
||||
|
||||
### Podman (Universal)
|
||||
Podman is a container system very similar to docker that lets you run programs in an isolated and self-contained environment.
|
||||
|
||||
First install [Podman](../Tools/Podman.md) on your computer.
|
||||
|
||||
The container image will automatically be downloaded when you run postgres database with:
|
||||
```sh
|
||||
podman run -d --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword docker.io/library/postgres:latest
|
||||
```
|
||||
|
||||
Checkout the [Podman document](../Tools/Podman.md) to learn how to manage containers.
|
||||
|
||||
**Note:** You can skip the Setup stage below, it is already setup inside the container
|
||||
|
||||
## Setup
|
||||
First make sure postgres is running:
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user