2022-06-17 21:12:42 +01:00
---
name : Run Coder in Lima
description : Quickly stand up Coder using Lima
tags : [ local, docker, vm, lima]
---
# Run Coder in Lima
This provides a sample [Lima ](https://github.com/lima-vm/lima ) configuration for Coder.
This lets you quickly test out Coder in a self-contained environment.
> Prerequisite: You must have `lima` installed and available to use this.
## Getting Started
- Run `limactl start --name=coder https://raw.githubusercontent.com/coder/coder/main/examples/lima/coder.yaml`
- You can use the configuration as-is, or edit it to your liking.
This will:
2023-01-03 15:11:13 +02:00
2022-06-17 21:12:42 +01:00
- Start an Ubuntu 22.04 VM
- Install Docker and Terraform from the official repos
2023-08-23 12:27:57 +03:00
- Install Coder using the [installation script ](../../docs/install/install.sh.md )
2022-06-17 21:12:42 +01:00
- Generates an initial user account `admin@coder.com` with a randomly generated password (stored in the VM under `/home/${USER}.linux/.config/coderv2/password` )
2023-04-12 16:26:03 +00:00
- Initializes a [sample Docker template ](https://github.com/coder/coder/tree/main/examples/templates/docker ) for creating workspaces
2022-06-17 21:12:42 +01:00
Once this completes, you can visit `http://localhost:3000` and start creating workspaces!
2022-08-24 10:40:36 -05:00
Alternatively, enter the VM with `limactl shell coder` and run `coder templates init` to start creating your own templates!
2022-06-17 21:12:42 +01:00
## Further Information
- To learn more about Lima, [visit the the project's GitHub page ](https://github.com/lima-vm/lima/ ).