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

fix: respect LIMA_HOME environment variable #3254

Merged
merged 1 commit into from Jul 18, 2023

Conversation

afbjorklund
Copy link
Contributor

What does this PR do?

In some environments, it might be desirable to not use the regular HOME environment variable (~)...

For instance, when /home is on a shared filesystem but you want your instances on a local filesystem.

In those cases, you can override LIMA_HOME

Note: the LIMA_HOME defaults to ~/.lima

See https://github.com/lima-vm/lima/blob/master/docs/internal.md#lima-home-directory-lima_home

Screenshot/screencast of this PR

What issues does this PR fix or reference?

How to test this PR?

export LIMA_HOME=/tmp/home/lima

See that it is looking for sockets there:

[lima] Could not find podman socket at /tmp/home/lima/podman/sock/podman.sock

Could also verify that it still works OK.

@afbjorklund afbjorklund requested review from a team and benoitf as code owners July 18, 2023 17:24
@afbjorklund afbjorklund requested review from jeffmaury and cdrage and removed request for a team July 18, 2023 17:24
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
@benoitf benoitf merged commit 49d1b88 into containers:main Jul 18, 2023
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.3.0 milestone Jul 18, 2023
@afbjorklund afbjorklund deleted the lima-home branch July 18, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants