{"id":34934,"date":"2021-06-28T06:11:03","date_gmt":"2021-06-28T06:11:03","guid":{"rendered":"https:\/\/ittutorial.org\/?p=34934"},"modified":"2021-06-28T06:11:03","modified_gmt":"2021-06-28T06:11:03","slug":"postgresql-installation-on-docker","status":"publish","type":"post","link":"https:\/\/ittutorial.org\/postgresql-installation-on-docker\/","title":{"rendered":"PostgreSQL installation on Docker"},"content":{"rendered":"<p>Hello, I will explain postgreSQL installation on docker<\/p>\n<p>we find the postgreSQL packages with the following command<\/p>\n<pre>docker search postgresql<\/pre>\n<p>After we list the postgres packages, we select the version we will install and import the package with the docker pull command.<\/p>\n<pre>docker pull postgres:[12]<\/pre>\n<p>With the docker run command and specifying the postgreSQL directory and port, docker will install postgresql in the background<\/p>\n<pre>docker run --name postgresql12 -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 -v \/postgres\/data:\/var\/lib\/postgresql\/data postgres:12<\/pre>\n<p>With the docker update command, it performs an update on the latest packages and raises postgresql.<\/p>\n<pre>docker update --restart always 88203932bda7<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Hello, I will explain postgreSQL installation on docker we find the postgreSQL packages with the following command docker search postgresql After we list the postgres packages, we select the version we will install and import the package with the docker pull command. docker pull postgres:[12] With the docker run command and specifying the postgreSQL directory &hellip;<\/p>\n","protected":false},"author":36,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3896],"tags":[19842],"class_list":["post-34934","post","type-post","status-publish","format-standard","","category-postgresql","tag-docker-postgresql"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/34934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/comments?post=34934"}],"version-history":[{"count":1,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/34934\/revisions"}],"predecessor-version":[{"id":34935,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/34934\/revisions\/34935"}],"wp:attachment":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/media?parent=34934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/categories?post=34934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/tags?post=34934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}