You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently you cannot use Rancher Desktop as a Docker Desktop replacement to run docker compose if you are using "Visual Studio 2022"
The reason is that when running docker compose in visual studio it looks for a config file that Docker Desktop creates on installation called settings.json in the path "%AppData%/Docker "(C:\Users\YOURUSERNAME\AppData\Roaming\Docker\settings.json)
but rancher don't create this file on Installation
Current workaround:
Create a new folder called "Docker" on path "C:\Users\YOURUSERNAME\AppData\Roaming"
place this file in the Docker folder (you need to rename the file to settings.json as github won't let me upload json ext) settings.json
Run docker compose on VS 2022 and it will work normally.
I would like to keep the issue open for now, even if we can't do much about it directly.
We would need to investigate if just creating a default settings.json file would be sufficient, but of course we would only be able to do this if Docker Desktop itself is not installed.
I could see us maybe tying this into the Diagnostics feature, to detect if VS is installed, but Docker Desktop isn't, and then offering a "fix action" to create a default file. But this will require further research to see if this is actually useful.
Actual Behavior
Currently you cannot use Rancher Desktop as a Docker Desktop replacement to run docker compose if you are using "Visual Studio 2022"
The reason is that when running docker compose in visual studio it looks for a config file that Docker Desktop creates on installation called settings.json in the path "%AppData%/Docker "(C:\Users\YOURUSERNAME\AppData\Roaming\Docker\settings.json)
but rancher don't create this file on Installation
Current workaround:
References:
https://developercommunity.visualstudio.com/t/running-docker-compose-via-vs2022-is-tied-to-docke/1669591
https://developercommunity.visualstudio.com/t/Visual-Studio-Container-tools-depend-on-/1537846
Steps to Reproduce
Result
Visual Studio 2022 won't run docker compose with Rancher Desktop
Expected Behavior
Rancher on installation should behave like Docker Desktop and:
Additional Information
No response
Rancher Desktop Version
1.6.2
Rancher Desktop K8s Version
1.25.4
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Windows
Operating System / Build Version
Windows 10 20H2
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
NA
The text was updated successfully, but these errors were encountered: