lima-vm / alpine-lima

Create an alpine based image for lima
Apache License 2.0
40 stars 26 forks source link

Alpine does not keep the installed packages after a new start #101

Closed pr-ju closed 1 year ago

pr-ju commented 1 year ago

Hi,

Sadly, Alpine does not keep the installed packages after a new start. Ist this an intended behavior? Files and dirs in the linux home dir survive, though.

Done with the regular alpine.yaml template on Macbook Pro M1 with macOS 12.

Best

PR

jandubois commented 1 year ago

Yes, that is expected because Alpine boots from an ISO.

You should install any additional packages you need in a provisioning script. In Lima 0.15.1 and later the package cache will be stored on the persistent volume, so on subsequent restarts it will simply reinstall the packages and not download them again.