-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error while creating mount source path (after update to 1.5.0) - No permission to create tempfile #519
Comments
This is indeed a change in 1.5.0, see #423 and #450. Btw. I wonder why Docker isn't allowed to create the file in |
We have checked I tried with workaround
BTW is this file really needed? I would like to get rid of it. Also similar issue mentioned #423 |
@VladoDemcak you can disable the checks as described here: Please make sure to re-enable them if something goes wrong before reporting the issue - most of the time they help to understand what's broken |
thanks @bsideup. I disabled check with But I still consider this as an issue - or a restriction at least. I think some users will not be able to use testcontainers |
I still don't understand why you don't have permissions to write into the temp directory, this should be a safe default. We might be able use currentDir as a fallback solution, but I'm unsure if this doesn't make troubleshooting more confusing. |
@kiview it's some restriction on working laptop - permission denied for accessing temp folder from IDE. in console I am able to write to directory but from IDE I am not. I can work with the solution with I would keep this issue as 'minor'/'good to have' . |
@VladoDemcak Ah, good to know that it's a known restriction on your system, else I would have been confused 😉 I don't think using So I see the following options:
|
@kiview In my opinion as the most flexible way I see option num2 and by default use |
This also problematic for people affected by this issue i.e. AAD joined Windows 10 machines. Volume sharing is broken for AAD accounts so a local user must be setup to authenticate the share. However, that user must then be manually granted access to those directories which need access. The workaround should be to grant this user access to my TEMP directory e.g. C:\Users\username\AppData\Local\Temp. However, the error states this: error while creating mount source path '/host_mnt/c/Users/username/AppData/Local/Temp/.testcontainers-tmp-6074610156504796562': mkdir /host_mnt/c/Users/username/AppData: permission denied I've tried granting access to just C:\Users\username\AppData\Local\Temp (My temp directory) but for some reason this is not sufficient and I had to grant access to the entirety of C:\Users\username\AppData to resolve this problem. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this. |
@VladoDemcak @rupert654 |
I am on Docker Desktop Version 2.0.0.0-win78 (28905) with an AAD joined win10 machine, and am still experiencing this issue. Resolution was to explicitly grant access to the AppData folder as @rupert654 indicated. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this. |
This issue has been automatically closed due to inactivity. We apologise if this is still an active problem for you, and would ask you to re-open the issue if this is the case. |
Hi we have problems with creating testcontainers tmp file due permission denied.
I was not able to figure out how to change directory where this tmp file should be created. The best option for us would be target folder.
I dont have this problem in 1.4.3v (I know this file is created in next to
pom.xml
e.g) but problem is in1.5.0
. We tried to run as admin but we have some policy and we are not able to work with tmp directory.We are running
testcontainers
on Windows 10.Is there some option to change this directory?
The text was updated successfully, but these errors were encountered: