Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Cannot mount volumes on stock Postgres image #504

Closed
tragiclifestories opened this issue Dec 30, 2021 · 0 comments
Closed

Cannot mount volumes on stock Postgres image #504

tragiclifestories opened this issue Dec 30, 2021 · 0 comments

Comments

@tragiclifestories
Copy link

Hi! Just playing around with Lima for the first time and having trouble mounting directories using the stock Postgres image - raising here since it doesn't look like Postgres is doing anything too wild so it may be a lima bug?

Reproduction

mkdir -p /tmp/lima/pgdata
lima nerdctl run -v "/tmp/lima/pgdata:/var/lib/postgresql/data" postgres:13
#=> chown: changing ownership of '/var/lib/postgresql/data': Permission denied

Looking at the postgres dockerfile, it creates the directory and CHOWNs it, and then declares the VOLUME afterwards - nothing else in the file seems immediately relevant.

Lima version 0.8.0

Mounts in lima.yaml:

# Expose host directories to the guest, the mount point might be accessible from all UIDs in the guest
# Default: none
mounts:
  - location: "~/Projects"
    # CAUTION: `writable` SHOULD be false for the home directory.
    # Setting `writable` to true is possible, but untested and dangerous.
    writable: true
  - location: "/tmp/lima"
    writable: true
@lima-vm lima-vm locked and limited conversation to collaborators Dec 31, 2021
@AkihiroSuda AkihiroSuda converted this issue into discussion #505 Dec 31, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants