Connect Docker running on MAC - macos

I am trying to connect docker running on MacOS. I have a Windows 10 VM running on Mac and instead of installing docker again in VM(which usually runs in many issues), I'd like to connect to docker running on Mac. Can someone point me to a tutorial or some answer. I am novice in docker.

Have you already installed Docker Desktop for Mac?
After you've got Docker up and running, tell it where your projects are:
Open Docker Preferences
Click the File Sharing icon in the icon bar at the top of the window
Click the plus button at the bottom of the path list
Select the folder that contains all your projects
Click Apply & Restart
If you need to have your Windows VM connect to your Docker containers running on macOS, you'll need find out if Windows can access your Mac via networking. You will also need to modify your Windows hosts file to point to your Mac's IP address.

Related

Docker on Windows 10 Crashing

I'm on windows 10 and I'm encountering Docker on Windows crashing on startup.
I just installed docker on windows and have a couple of containers spinning up (last night). I've been able to use it but after reboot, or shutdown, this was the behaviour ever since. Pretty unstable.
It looks like this and terminates after a while without any prompt of an error.
More info that I have Hyper-V installed on my machine and "Use the WSL 2 based engine" option enabled on docker.
On my end, I was able to solve this by:
Going to Apps & Features
Search for Ubuntu (or any linux distro you've installed)
Click on it and navigate to Advance options
Click on Reset button.
Also, try to trial and error which docker on windows version is stable with your system.
Hope that helps.

How to install an IDE without a graphics environment using a web browser

I would like to install PyCharm on an EC2 container running Debian in order to graphically edit and debug code
I get the error "Unable to detect graphics environment"
How does one use a web browser as a GUI (ie port forwarding)
If relevant, my local machine is windows and I connect through docker

Can Docker Desktop for Windows Point To Remote Docker Engine?

I am unable to run linux containers as I run Docker in my development vm which has visual studio installed and I have not been ablt to get it working yet as it is an unsupported scenario and many of the google solutions have unfortunately not resolved it for me.
However, I was thinking that maybe I could keep Docker Desktop running on my dev vm (so that VS would be happy it was still "local") but actually have the Docker engine/daemon bit running on a remote host where linux containers actually work - is it possible to repoint Docker Desktop for Windows to a Docker engine on a remote host?
Apologies if my terminology is rubbish, I am new to Docker. Also, I have done some searching and have seen articles and messages talking about docker machine and DOCKER_HOST environment variables, but I cannot see anything yet that applies to Docker Desktop (e.g. I don't have that env variable set on my docker windows vm so maybe it doesn't use that mechanism).
Thanks in advance

Hyper-V problems when wanting to run Docker from a macOS VM with VMWare Workstation 12 Player

I am currently attempting to run a macOS High Sierra VM on my Windows 10 laptop using VMWare Workstation 12 Player.
To make the VM work, it says I must disable Hyper-V - Upon disabling, the VM does indeed work.
However, when I want to run Docker on my macOSHS VM, it gives the error:
There is also a link to a page telling one how to work with Hyper-V and that it should be re-toggled to work, along with some CMD code that I can't seem to get to work...
When I turn off Hyper-V the VM starts as normal, but when I try to install/run Docker on there... I am greeted with:
Has anybody run into this problem before?
Follow this answer, basically you have to enable virtualization in the vmware settings in the processor tab.
https://serverfault.com/questions/841330/docker-on-mac-on-vmware/849836#849836

Does Kitematic 0.7.6 for Windows support Volumes?

I am able to run the hello-world-nginx Docker container running Kitematic on Windows 7. The following tutorial shows that the website_files is accessible from the Mac Finder:
https://kitematic.com/docs/nginx-web-server/
On Windows, I do not see the Edit Files section in Kitematic and the Volumes tab is empty.
I am new to Docker, Kitematic and VirtualBox.
Are volumes supported yet in Kitematic 0.7.6 for Windows? I was not prompted to mount a volume and I don't see any way to do it in Kitematic.
I just installed today on windows 10 and yes it supports volumes, but actually thats based on the image configuration. I see you have posted this long time ago, give it another go ur update what do u have and you should find it there.
Guess only in the OSX version you can always alter them... for the latest mongo it works on Win too, but it also has the mounts directly in the dockerfile:
https://github.com/docker-library/mongo/blob/191cc63288fb44c2fd147eac27ade07ae4b6b0b5/3.2/Dockerfile#L58
Guess it can be easily added too any dockerfile in a similar way then.

Resources