ok i am able to run a docker image by creating docker file and access it. Issue is how to do i code and share files between linux container and IDE( visual code). I see every one docker desktop ( on google search shared folder shows up in settings page) but mine have general resources command line kubernetes and no shared folder inside of these tabs also.
Some one help if you know why.
Vagrant taking too long to run. Thought i use docker to improve my development speed.
Running linux containers ( tried windows containers also ) …no shared folder tab.
Ok i found the answer. I doubt many people using docker because there would be many results in google search. i did not find one. I realised a post talking about this in 2019. Then it dawn on me that new version cut off all the features in community edition. i installed 2019 edition …i see all the extra options and shared folder.
Me too had the same issue. So, I did the below steps.
First, pull the windowsserver container(You can pull any container based on your requirement).
Go to docker desktop, select images.
You can see the image you pulled. Select run, then change the settings. That is, set a container name, a path in your machine you want to mount, container path(for that, I simply gave C:\data)
Then save the settings
Go to containers/apps in docker desktop.
You can see the new container name you have created.
*Open cli of that container >- (this symbol)
then a cli with path as C:\ will be opened.
*Type dir. You can see the folder data created there.
Now, add some files in the mounted folder of your local machine and see whether it is reflected in the data folder of container.