Postgres Container does not run correctly Mac/OS using M1 chipset #7125
Labels
area/volume
Access to host volumes from inside the VM or containers
kind/bug
Something isn't working
platform/macos
Actual Behavior
When using the command below with the 9p option for volumes. The container starts but the logs contains many chown failure message. chown: /var/lib/postgresql/data: Operation not permitted
docker run -d
--name timescaledb
-p 5432:5432
-e POSTGRES_PASSWORD=password
-v $PRJ_DIR/data/postgres:/var/lib/postgresql/data
timescale/timescaledb:latest-pg12-oss
Steps to Reproduce
Click on Rancher Desktop->Settings menu option
For volumes select 9p
Cache mode: mmap
mem size: 128
Protocol Version: 9p2000.L
Security Model: None
docker run -d
--name timescaledb
-p 5432:5432
-e POSTGRES_PASSWORD=password
-v $PRJ_DIR/data/postgres:/var/lib/postgresql/data
timescale/timescaledb:latest-pg12-oss
Result
Container logs show
chown: /var/lib/postgresql/data: Operation not permitted
chown: /var/lib/postgresql/data/pg_multixact: Operation not permitted
chown: /var/lib/postgresql/data/pg_multixact/members: Operation not permitted
chown: /var/lib/postgresql/data/pg_multixact/members/0000: Operation not permitted
chown: /var/lib/postgresql/data/pg_multixact/offsets: Operation not permitted
chown: /var/lib/postgresql/data/pg_multixact/offsets/0000: Operation not permitted
chown: /var/lib/postgresql/data/pg_wal: Operation not permitted
chown: /var/lib/postgresql/data/pg_wal/archive_status: Operation not permitted
chown: /var/lib/postgresql/data/pg_wal/000000010000000000000001: Operation not permitted
chown: /var/lib/postgresql/data/pg_wal/000000010000000000000002: Operation not permitted
chown: /var/lib/postgresql/data/pg_snapshots: Operation not permitted
chown: /var/lib/postgresql/data/pg_commit_ts: Operation not permitted
chown: /var/lib/postgresql/data/pg_stat: Operation not permitted
chown: /var/lib/postgresql/data/PG_VERSION: Operation not permitted
chown: /var/lib/postgresql/data/pg_stat_tmp: Operation not permitted
chown: /var/lib/postgresql/data/pg_stat_tmp/db_18488.stat: Operation not permitted
chown: /var/lib/postgresql/data/pg_stat_tmp/global.stat: Operation not permitted
chown: /var/lib/postgresql/data/pg_stat_tmp/db_13478.stat: Operation not permitted
Expected Behavior
Container should run with clean logs and be able to connect to postgres contianer with PG Admin container.
Additional Information
No response
Rancher Desktop Version
1.14.1
Rancher Desktop K8s Version
not using kuberentess
Which container engine are you using?
moby (docker cli)
What operating system are you using?
macOS
Operating System / Build Version
Mac os 14.5 (23F79)
What CPU architecture are you using?
arm64 (Apple Silicon)
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
No response
The text was updated successfully, but these errors were encountered: