Skip to content

Commit

Permalink
[docs] Improve colima disk allocation methods to show new increase ca…
Browse files Browse the repository at this point in the history
…pability (ddev#4798) [skip ci]
  • Loading branch information
rfay authored Apr 1, 2023
1 parent afaddce commit afe6a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/users/install/docker-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ You’ll need a Docker provider on your system before you can [install DDEV](dde
When your computer restarts, you’ll need to `colima start` again. This will eventually be automated in later versions of Colima.

!!!tip "Colima disk allocation"
We recommend allocating lots of storage for Colima because there’s no easy way to increase the size later (see [GitHub comment](https://github.com/abiosoft/colima/issues/398#issuecomment-1449801811) for a step-by-step guide to resize disk images with `qemu`). You can reduce usage by running `ddev clean`, and killing off disk images by running `docker rm -f $(docker ps -aq) && docker rmi -f $(docker images -q)`. If you have to rebuild your Colima instance, use the technique described below for migrating from Docker Desktop.
In Colima versions starting with 0.5.4 you can increase—but not decrease—the disk allocation by editing `~/.colima/default/colima.yaml` to change the `disk` setting to a higher value. For example, `disk: 200` will increase allocation to 200 gigabytes. Then `colima restart` will result in the new disk allocation.

!!!warning "Docker contexts let the Docker client point at the right Docker server"
Colima activates its own Docker context to prevent conflicts with Docker Desktop. If you run `docker context ls`, you’ll see a list of available contexts where the currently-active one is indicated with a `*`—which will be `colima` after you’ve started it. You can change to the default (Docker Desktop) with `docker context use default` or change back with `docker context use colima`. This means you can run Docker Desktop and Colima at the same time, but be mindful of which context you’re pointing at!
Expand Down

0 comments on commit afe6a1b

Please sign in to comment.