I don’t know if the topic was raised before in the forum.
At the moment, we’re using the Synchronized file shares for Docker Desktop. However, I would like to automate the process of adding a share and avoid users from going through the default way, which is
Settings → Resources → File Sharing and then Create Share.
I’ve tried to incorporate it into the admin-settings.json, but I had no luck with it. Has anyone done it?
I don’t know any official way without the GUI, I remembered something but I must have remembered a different feature, because the documentation mentions the GUI only.
You could share the entire Projects folder and manage segregation within your containers:
C:\Users\Kristian\Projects
That way, any new project or folder you add inside projects is automatically available to Docker without additional configuration.
Alternatively, if you need more dynamic control, you could also script the creation of directory junctions or mappings on the host to control what’s exposed without modifying Docker Desktop settings each time.