postgres report premission issue
- Langage dominant
- Go
- Étoiles
- 30.8k
- Forks
- 613
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### 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
- [ ] macOS Intel <= 13 (Ventura)
- [ ] macOS Intel >= 14 (Sonoma)
- [ ] Apple Silicon <= 13 (Ventura)
- [X] Apple Silicon >= 14 (Sonoma)
- [ ] Linux
### 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_
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
The issue shows a permission error when running a PostgreSQL container with a volume mount under Colima, while Docker Desktop works. Examine the docker-compose.yml snippet and the error logs about chown failures. Look into Colima's volume mounting and user mapping, particularly how it handles the 'root' user and file permissions on macOS. Check existing Colima documentation or issues related to PostgreSQL and volume permissions to understand the root cause.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- docker, postgresql
- Domaine
- devops
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100