Repository navigation
overlay: use index=off to fix EBUSY on mount - #4311
Conversation
kernel version > 4.13rc1 support index=on feature, it will be failed with EBUSY when trying to mount. Related: moby/moby#37993 Signed-off-by: Rudy Zhang <[email protected]>
|
Build succeeded.
|
|
LGTM Thanks! |
|
We avoided porting this functionality over in the past because it was seen as an issue with the design of the Docker drivers, misuse of the snapshot, or a previous failure not being cleaned up. I think it is best to analyze the case that was causing the ebusy in the first place before making a global change like this. This is not the best way to solve the ebusy imo because it means that the snapshot is now mounted twice for write, a condition which can lead to undefined behavior in the overlay upperdir. |
|
The root cause is that the snapshotter diff(Compare API) between We can see that the common case is to commit running container into image. Basically, before committing container, we must pause the container to make sure that
I am agree with @dmcgowan . The cc @rudyfly How to reproduce issue? |
kernel version > 4.13rc1 support index=on feature, it will be failed
with EBUSY when trying to mount.
Related: moby/moby#37993
Signed-off-by: Rudy Zhang [email protected]