Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres Container does not run correctly Mac/OS using M1 chipset #7125

Open
dougchristie-DukeEnergy opened this issue Jul 2, 2024 · 0 comments
Labels
area/volume Access to host volumes from inside the VM or containers kind/bug Something isn't working platform/macos

Comments

@dougchristie-DukeEnergy
Copy link

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

@dougchristie-DukeEnergy dougchristie-DukeEnergy added the kind/bug Something isn't working label Jul 2, 2024
@mook-as mook-as added platform/macos area/volume Access to host volumes from inside the VM or containers labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/volume Access to host volumes from inside the VM or containers kind/bug Something isn't working platform/macos
Projects
None yet
Development

No branches or pull requests

2 participants