Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dev:web:psql_docker [2023/03/03 12:08] mbdev: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>FROM postgres+<Code: shell linenums:1 | Dockerfile>FROM postgres
 COPY fsidb_bac.sql /docker-entrypoint-initd.d/</Code> COPY fsidb_bac.sql /docker-entrypoint-initd.d/</Code>
-to build the dockerfile use: <Code: shell linenums:0|>docker build -t fsidbpostgresql:latest </Code>+to build the dockerfile use: <Code: shell linenums:0|>docker build -t fsidbpostgresql:latest </Code>
 With //docker images// all locally saved images are shown and fsidbpostgresql:latest should now be visible. \\ With //docker images// all locally saved images are shown and fsidbpostgresql:latest should now be visible. \\
 Now we start the container using: Now we start the container using: