D
D
Dos2019-11-17 08:15:00
macOS
Dos, 2019-11-17 08:15:00

How to develop with docker on mac os?

Hello! Recently installed parallels desktop mac and installed virtual ubuntu on it . To work with docker .
Docker works. Hooray! But now the question is how to develop in such a bundle? How to make mac os tools friends with ubuntu? Everything has moved to ubuntu. Now you have to transfer phpstorm, browsers and other tools to ubuntu. Since safari and chrome don't open on localhost now. They are only available in ubuntu. PhpStorm will not see the docker and its containers for connecting the php interpreter, debugger .... It turns out that it's easier for me to install all this on ubuntu now. Or how to be? Is it possible to use ubuntu as a simple localhost and use everything else from mac os?
Thanks to.
PS Correct the tags if you specified the wrong ones.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shitskov, 2019-11-17
@pro-dev

I think you misunderstood the advice. It was necessary to use Linux (without X) only to run dockers, and not move to work in a virtual machine.
I have never had to build such a scheme, but since it works in the native docker, it should start up like that too.
You can combine Mac and Linux network cards into a bridge, and containers in Linux can run the network in Host mode.
Perhaps this is unnecessary and from the containers you can go to the poppy by its ip, and not through loclahost. At least that's what native docker does.

V
Vitaly Karasik, 2019-11-17
@vitaly_il1

I advise you to try Docker Desktop for Mac.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question