Answer the question
In order to leave comments, you need to log in
How to properly set up Docker API in VirtualBox?
Greetings gentlemen.
Help to understand the following problem:
There is a Windows machine on which VirtualBox is installed, and a virtual machine on Centos 7 is spinning in it.
The network in the machine is configured through the "Virtual Adapter".
Docker is installed on the machine itself and one container is raised with a simple python web application that listens on port 5000 on the machine and, when a request is received, returns a simple html page.
If on a win wheelbarrow to send an http request to ip_vir_machine:5000 it will return the html page as it should.
Docker itself has the "Docker API" enabled. It is enabled using this simple config:
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question