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

Customizable home directory #1226

Open
NN--- opened this issue Dec 20, 2024 · 4 comments
Open

Customizable home directory #1226

NN--- opened this issue Dec 20, 2024 · 4 comments

Comments

@NN---
Copy link

NN--- commented Dec 20, 2024

Description

The current implementation uses the username with .linux suffix.
It would be nice to have a customizable home directory.

@dcitterio
Copy link

You could customize the Config location of Colima by setting COLIMA_HOME environment variable.

Check this section in the FAQ

or do you refer to something else?

@NN---
Copy link
Author

NN--- commented Jan 2, 2025

The home directory inside the container has .linux suffix.
You can see it here:

workDir = "/home/" + username + ".linux"

>a@A ~$ colima start
INFO[0031] starting colima
>ls ~/../
a.linux

@jandubois
Copy link

I don't know if Colima gives you access to lima.yaml, but it is now possible to change the home directory location inside the VM (the default value is "/home/{{.User}}.linux"), e.g. with

user:
  home: "/home/{{.User}}"

@NN---
Copy link
Author

NN--- commented Jan 2, 2025

Colima rewrites lima.yaml. The changes are not saved.

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

No branches or pull requests

3 participants