Skip to content

Commit

Permalink
docs: update faq regarding docker bind mount issue (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnathan authored Jul 1, 2024
1 parent c3a31ed commit 369561d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
- [Colima cannot access the internet.](#colima-cannot-access-the-internet)
- [Docker Compose and Buildx showing runc error](#docker-compose-and-buildx-showing-runc-error)
- [Version v0.5.6 or lower](#version-v056-or-lower)
- [Issue with Docker bind mount showing empty](#issue-with-docker-bind-mount-showing-empty)

## How does Colima compare to Lima?

Expand Down Expand Up @@ -380,3 +381,9 @@ runc run failed: unable to start container process: error during container init:
From v0.5.6, start Colima with `--cgroups-v2` flag as a workaround.

**This is fixed in v0.6.0.**

### Issue with Docker bind mount showing empty

When using docker to bind mount a volume (e.g. using `-v` or `--mount`) from the host where the volume is not contained within `/tmp/colima` or `/Users/$USER`, the container will start without raising any errors but the mapped mountpoint on the container will be empty.

This is rectified by mounting the volume on the VM, and only then can docker map the volume or any subdirectory. Edit `$HOME/.colima/default/colima.yaml` and add to the `mounts` section (examples are provided within the yaml file), and then run `colima restart`. Start the container again with the desired bind mount and it should show up correctly.

0 comments on commit 369561d

Please sign in to comment.