0

normally, the default docker-machine ip is 192.168. 99.100. I work on MAC and want to check it , but when I type

$docker-machine ip 

I have the following error message :

Error: No machine name(s) specified and no "default" machine exists.

What can I do ?

flamant
  • 733
  • 4
  • 15
  • 41
  • 1
    docker-machine ip is when there is no support for docker on the OS. For e.g docker desktop with windows 7(this is where we use docker toolbox). why do you need docker-machine ip with mac? – error404 May 08 '20 at 16:48
  • Hello error404, I want to request an API from angular to the application which is hosted on docker – flamant May 08 '20 at 16:53
  • So, I use the url http://192.168.99.100:5555/api/produit/produits – flamant May 08 '20 at 16:56
  • You don't need machine-ip..just expose the port using `-p 5555:5555` when your container starts and then hit the `localhost:5555/api/produit/produits` – error404 May 09 '20 at 06:27

0 Answers0