Skip to content

postgres data gets deleted when i restart server #1139

@feranzie

Description

@feranzie

Docker version 20.10.22, build 3a2c30b
windows 10

every time I ingest data it works and I'm able to use the data in pgcli, but once I restart the server its no longer there

winpty docker run -it \ -e POSTGRES_USER="root" \ -e POSTGRES_PASSWORD="root" \ -e POSTGRES_DB="ny_taxi" \ -v /c/Users/DELL/Desktop/data-engineering-zoomcamp/week_1_basics_n_setup/2_docker_sql/ny_taxi_postgres_data:/var/lib/postgresql/data/: \ -p 5432:5432 \ postgres:13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions