Docker for windows - Access docker ip


I’m still new to Docker for Windows. Can someone please help/redirect me to any info/post which may have been asked earlier regarding :

  • How to access the docker machine ip where the containers are up and running? (I need the hostname/ip where docker is running the containers to access my application)

I can see that the containers are up, but when i type in ‘docker-machine active’ i get a message saying ‘no active host found’. Before using Docker for Windows, I had used Docker Toolbox on Windows and it was easy to get the ip of default docker machine.

Details :

  • Windows 10 /64bit OS
  • Docker for Windows version
    Version: 17.03.1-ce
    API version: 1.27
    Go version: go1.7.5
    Git commit: c6d412e
    Built: Tue Mar 28 00:40:02 2017
    OS/Arch: windows/amd64
    Version: 17.03.1-ce
    API version: 1.27 (minimum version 1.12)
    Go version: go1.7.5
    Git commit: c6d412e
    Built: Fri Mar 24 00:00:50 2017
    OS/Arch: linux/amd64
    Experimental: true

Steps to reproduce :

  • Used the container details for slapd, postgres and dcm4chee-arc from page. In the docker-compose.yml file removed the volume mappings for slapd and postgres containers. Also removed the etc/timezone related entries from all 3 containers. From the docker-compose.env removed entries related to logstash.
    Then used :
    docker-compose up -d : to start the slapd, postgres and dcm4chee-arc containers
    docker ps -a : shows that 3 containers are up and running

Result : Should be able to access http://hostname-or-ip-where-docker-is-running:8080/dcm4chee-arc/ui2