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
[windows] The process cannot access the file because it is being used by another process #330
Comments
I'm having the same issue and also the error "Handle is invalid" in Windows. Just checked and the latest version of Samba available in the Alpine 3.12 branch is 4.12.2r1, so this docker container cannot be updated. |
@TheGiolly thanks a lot! I could confirm that the fix(andyzhangx@26c899d) could really fix the permission issue on Windows. Still looking forward @dperson to make a fix in master branch. Here is my fixed image: docker build --no-cache -t andyzhangx/samba:win-fix -f ./Dockerfile . |
The Samba package has been updated to 4.12.6-r0 on both the 3.12 and edge branches of Alpine. |
For anyone else running into this issue, if you won't be deleting your samba container, here's a quick fix to run against it (credit to TheGiolly above)
The container will stop automatically (smbd not running) and restart with the latest version of Samba. To check the container's samba version, use |
Hey, I'm also having the same issue as #350, and was directed here. |
With Docker Compose, you can simply replace |
Do you know how to do this with the run command? |
You could try the |
I did a small fork: https://github.com/jtagcat/samba You are welcome to use the image ( |
I managed to update the smb version setting read_only to false and the entrypoint in the compose file like this
|
I tried to use following config
args: ["-u", "$(USERNAME);$(PASSWORD)", "-s", "share;/smbshare/;yes;no;no;all;none", "-p"]
to set up a SMB server, and then mount one SMB share on multiple windows nodes, the first always succeeded, while the second mount always failed withThe process cannot access the file because it is being used by another process
, this issue only happens on Windows, is there any config wrong? Thanks.The text was updated successfully, but these errors were encountered: