abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
19.53k stars 396 forks source link

postgres report premission issue #1177

Open hiveer opened 2 weeks ago

hiveer commented 2 weeks ago

Description

starhub-server-postgres-1 | chown: changing ownership of '/var/lib/postgresql/data/base/16385/2696': Permission denied starhub-server-postgres-1 | chown: changing ownership of '/var/lib/postgresql/data/base/16385/3576': Permission denied starhub-server-postgres-1 | chown: changing ownership of '/var/lib/postgresql/data/base/16385/19159': Permission denied starhub-server-postgres-1 | chown: changing ownership of '/var/lib/postgresql/data/base/16385/2662': Permission denied starhub-server-postgres-1 | chown: changing ownership of '/var/lib/postgresql/data/base/16385/2830': Permission denied starhub-server-postgres-1 | chown: changing ownership of '/var/lib/postgresql/data/base/16385/3764_vm': Permission denied starhub-server-postgres-1 | chown: changing ownership of '/var/lib/postgresql/data/base/16385/17833': Permission denied starhub-server-postgres-1 | chown: changing ownership of '/var/lib/postgresql/data/base/16385/18047': Permission denied starhub-server-postgres-1 | chown: changing ownership of '/var/lib/postgresql/data/base/16385/2665': Permission denied starhub-server-postgres-1 | chown: changing ownership of '/var/lib/postgresql/data/base/16385/2838_vm': Permission denied starhub-server-postgres-1 | chown: changing ownership of '/var/lib/postgresql/data/base/16385/18078': Permission denied starhub-server-postgres-1 | chown: changing ownership of '/var/lib/postgresql/data/base/16385/2691': Permission denied

docker-compose.yml

  postgres:
    image: "gradescope/postgresql-multiple-databases:14.4"
    user: "root"
    environment:
      POSTGRES_USER: "postgres"
      POSTGRES_PASSWORD: "xxxxx"
      POSTGRES_MULTIPLE_DATABASES: "starhub_server,gitea,mirror"
    ports:
      - "5433:5432"
    volumes:
      - ./pgdata:/var/lib/postgresql/data
    networks:
      - my_network

After I switch to opstack, its working

Version

No response

Operating System

Output of colima status

No response

Reproduction Steps

  1. use docker desktop to run the postgres service
  2. switch to colima to run the postgres service

Expected behaviour

No response

Additional context

No response

unixc3t commented 3 days ago

delete existing instance colima delete

create new instance with vz colima start --vm-type=vz