

POSTGRES DOCKER MAC M1 PRO
Test SetupĪs part of my testing, I will be using the 16-inch MacBook Pro (OCT-2021), 16-inch MacBook Pro (NOV-2019), Dell XPS 17 (9710) and a custom-built desktop PC. I hope that a year of additional development and the more powerful Apple M1 Max SoC will deliver tangible improvements. In this article, I plan to take a second look at Docker Desktop for Mac.
POSTGRES DOCKER MAC M1 FOR MAC
For example, in my testing, Docker Desktop for Mac was consistently outperformed by its x86 Linux and Windows (WSL2) counterparts. It was clear that the Apple M1 System on a Chip (SoC) had tremendous potential, but was held back by the software. The performance of Docker running on the MacBook Air was good, relative to Intel equivalent Mac. Last year, I tested Docker for Mac on the MacBook Air running Apple Silicon, which I documented across three articles. I have been using Docker since 2014, primarily to support web development. With the arrivial of the 2021 MacBook Pro, I have been testing my common workloads. Please refer to my follow-up article “ Docker and Apple Silicon” for the latest results. 18:44:08.Update - On 1, Docker released Docker Desktop for Mac v4.6.0, which included a new experimental file sharing implementation called virtiofs. HINT: In a moment you should be able to reconnect to the database and repeat your command.

WARNING: terminating connection because of crash of another server processĭETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. 18:44:08.821 UTC HINT: In a moment you should be able to reconnect to the database and repeat your command. 18:44:08.821 UTC DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. 18:44:08.821 UTC WARNING: terminating connection because of crash of another server process 18:44:08.818 UTC LOG: terminating any other active server processes 18:44:08.818 UTC LOG: background worker "logical replication launcher" (PID 136) was terminated by signal 6: Aborted Qemu: uncaught target signal 6 (Aborted) - core dumped 18:44:08.811 UTC PANIC: stuck spinlock detected at LWLockWaitListLock, /build/postgresql-12-JGfMpC/postgresql-12-12.5/build/./src/backend/storage/lmgr/lwlock.c:833 Loading PostGIS extensions into template_postgis usr/local/bin/docker-entrypoint.sh: sourcing /docker-entrypoint-initdb.d/10_postgis.sh 18:41:34.191 UTC LOG: database system is ready to accept connections 18:41:34.116 UTC LOG: database system was shut down at 18:41:33 UTC usr/lib/postgresql/12/bin/pg_ctl -D /var/lib/postgresql/data -l logfile start You can now start the database server using: auth-local and -auth-host, the next time you run initdb. You can change this by editing pg_hba.conf or using the option -A, or Initdb: warning: enabling "trust" authentication for local connections

Performing post-bootstrap initialization.

Selecting dynamic shared memory implementation. The default text search configuration will be set to "english".įixing permissions on existing directory /var/lib/postgresql/data. The default database encoding has accordingly been set to "UTF8". The database cluster will be initialized with locale "en_US.utf8". This user must also own the server process. The files belonging to this database system will be owned by user "postgres". WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested $ docker run -rm -p 5432:5432 -e POSTGRES_PASSWORD=password postgis/postgis
