9951 explained code solutions for 126 technologies

dockerHow to access machine localhost from docker image

docker run -d --network="host" my_imagectrl + c

launch container from specified image


starts container in background


you'll be able to connect to machine localhost from container, just go to on container


name or ID of the image to launch