-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Mountpoint is not empty if docker containers were not quit #138
Comments
@jjeising I am struggling to reproduce this. Can you kindly verify your version of colima and lima?
|
Sure:
This is still reproducible. Is this maybe a permission issue? The first folder inside the vm belongs to |
@jjeising We ran into the same issue over in lima-vm/lima#584 if you want to join the conversation. We have some workarounds but no clean fix yet. To reproduce you need a docker container that has a restart policy, we're running into it with always but I think it also happens with the other restart policies. |
Delaying Docker daemon startup until boot is complete may fix this. |
Yes, the containers all have This would also be the expected behaviour, similar to Docker Desktop: if the containers where once startet (with a policy) they are always running if Colima is running. |
If colima is stopped while docker containers are running (e.g.
colima stop
or computer restart), mounting directories on the next start fails:When connecting to the instance via SSH an empty directory structure representing the docker mount points is found. After shutting down all running docker containers, stopping and starting colima the mount point works again.
Reproduce:
colima start --mount ~/src:w
cd ~/src/foo/bar/prj/ && docker-compose up
with volumes, e.g.volumes: - ./data/db:/var/lib/mysql:rw
colima stop && colima start
fuse: mountpoint is not empty
docker-compose down
colima ssh
, delete empty directory structure…/src/foo/bar/prj/data/db
(viasudo rm …
)colima stop && colima start
, mount works againLooks like something is started before the files are mounted?
The text was updated successfully, but these errors were encountered: