This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
dev:web:psql_docker [2023/03/03 12:08] – mb | dev:web:psql_docker [2023/03/03 12:21] (current) – mb | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== create dockerfile and container ===== | ===== create dockerfile and container ===== | ||
firstly we create a dockerfile using the postgres docker image and copying the exported database into the new image. \\ | firstly we create a dockerfile using the postgres docker image and copying the exported database into the new image. \\ | ||
- | <Code: shell linenums:1 |Dockerfile> | + | <Code: shell linenums:1 | Dockerfile> |
COPY fsidb_bac.sql / | COPY fsidb_bac.sql / | ||
- | to build the dockerfile use: <Code: shell linenums: | + | to build the dockerfile use: <Code: shell linenums: |
With //docker images// all locally saved images are shown and fsidbpostgresql: | With //docker images// all locally saved images are shown and fsidbpostgresql: | ||
Now we start the container using: | Now we start the container using: |