Running PostgreSQL in Docker and recommending several connection tools

Running PostgreSQL in Docker and recommending several connection tools

1 Introduction

PostgreSQL is a free software object-relational database management system (ORDBMS) with a very complete set of features. It is an object-relational database management system based on POSTGRES version 4.2 developed by the Department of Computer Science at the University of California. Many of the leading concepts of POSTGRES appeared in commercial Web databases only later. PostgreSQL supports most of the SQL standard and provides many other modern features, such as complex queries, foreign keys, triggers, views, transaction integrity, multi-version concurrency control, etc. Likewise, PostgreSQL can be extended in many ways, such as by adding new data types, functions, operators, aggregate functions, indexing methods, procedural languages, and so on. In addition, because of the flexibility of the license, anyone can use, modify, and distribute PostgreSQL for any purpose free of charge.

PostgreSQL is an excellent open source relational database that is being adopted by more and more projects. Starting with Docker is very convenient in development and testing environments, and one command is enough. Don’t worry about situations where you need multiple environments. At the same time, some clients are introduced.

2 Docker startup

First, pull the image. Here, select version 10. For more versions, see [Postgres Docker].

docker pull postgres:10

Start an instance with the following command:

docker run -itd \
    --name pkslow-postgres \
    -e POSTGRES_DB=pkslow \
    -e POSTGRES_USER=pkslow \
    -e POSTGRES_PASSWORD=pkslow \
    -e PGDATA=/var/lib/postgresql/data/pgdata \
    -v /custom/mount:/var/lib/postgresql/data \
    -p 5432:5432 \
    postgres:10

3 Client Connection

There are many excellent clients, here are a few free ones.

DBeaver supports multiple databases, such as PostgreSQL/MySQL/DB2/Oracle, etc., supports Mac/Win/Linux, and also supports Chinese, which is quite comprehensive.

pgAdmin is a web-based client tool.

PSequel is a PostgreSQL client tool for Mac.

Postico is also a client tool for Mac.

4 Conclusion

With so many clients, I ended up with DBeaver, or using IDEA or DataGrip to connect. In addition, SQLPro is good, but it is charged and very expensive.

This is the end of this article about running PostgreSQL in Docker and recommending several connection tools. For more information about starting PostgreSQL with Docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • About Docker deployment postgresql database
  • Solution for creating multiple databases when Docker starts PostgreSQL
  • How to install Postgres 12 + pgadmin in local Docker (support Apple M1)
  • Detailed steps to upgrade PostgreSQL in Docker environment
  • How to install and persist the postgresql database in docker
  • How to run postgreSQL with docker
  • Database backup in docker environment (postgresql, mysql) example code
  • How to deploy docker to access postgres database

<<:  Introduction to the functions and usage of value and name attributes in Html

>>:  Detailed explanation of Vue's custom event content distribution

Recommend

Zabbix monitoring solution - the latest official version 4.4 [recommended]

Zabbix 2019/10/12 Chenxin refer to https://www.za...

Solutions to the Problem of Creating XHTML and CSS Web Pages

The solutions to the problems encountered during x...

Implement group by based on MySQL to get the latest data of each group

Preface: The group by function retrieves the firs...

HTML special character conversion table

character Decimal Character Number Entity Name --...

Node.js+express message board function implementation example

Table of contents Message Board Required librarie...

Install Docker on Linux (very simple installation method)

I have been quite free recently. I have been doin...

RHCE installs Apache and accesses IP with a browser

1. at is configured to write "This is a at t...

MySQL index usage instructions (single-column index and multi-column index)

1. Single column index Choosing which columns to ...

MySQL SHOW PROCESSLIST assists in the entire process of troubleshooting

1. SHOW PROCESSLIST command SHOW PROCESSLIST show...

Pure CSS to achieve the effect of picture blinds display example

First, let me show you the finished effect Main i...

Sample code for installing ASPNET.Core3.0 runtime in Linux

# The following examples are for x64-bit runtime ...