Docker remote API not accessible

I installed boot2docker on my Windows 7 and initialized the VM.
Docker runs fine inside the VM, but I cannot access remote API on port 2375.
When connecting to port 2376 I get following reply:

docker@boot2docker:~$ curl http://localhost:2376/containers
§♥☺ ☻☻

According to this answer “Boot2Docker, supports remote access on port 2375 from the host”.

  • How can I start a Docker container on boot in OS X?
  • How can I get a Docker image's label if the label name has a “.” in it?
  • How to use HTTPS / SSL with self signed certificate on Mgt Development Environment
  • Inside a Docker Container: “Error: cannot open display: localhost:11.0”
  • Kitchen-Docker and Systemd
  • Certificate Verification Error in Windows Docker container running python
  • I tried researching means to configure remote API, but the articles(1,2,3,4) do not help me much. It would be handy to see where the remote access is configured.

    Running following command I get:

    docker@boot2docker:~$ ps -a -l | grep docker
     1117 root     /usr/local/bin/docker -d -D -g /var/lib/docker -H unix:// -H tcp://0.0.0.0:2376 --tlsverify --tlscacert=/
    var/lib/boot2docker/tls/ca.pem --tlscert=/var/lib/boot2docker/tls/server.pem --tlskey=/var/lib/boot2docker/tls/serverkey
    .pem
     1204 root     sshd: docker [priv]
     1206 docker   sshd: docker@pts/0
     1207 docker   -sh
     1364 docker   ps -a -l
     1365 docker   -sh
    

    According to this page ports are 2375 and 2376 for http and https respectively.

  • Docker-compose check if mysql connection is ready
  • docker port mapping syntax
  • Can’t delete image with children
  • How to create Docker image,Dockerfile of LAravel application from existing docker environment for Laravel
  • In Docker, can I use the JSON format for entrypoint from the command line?
  • Routing based on path in Dokku
  • One Solution collect form web for “Docker remote API not accessible”

    By default the Docker daemon on boot2docker only activates the TLS encrypted socket (port: 2376). To use boot2docker with an unencrypted Docker socket you have to disable TLS by adding DOCKER_TLS=no to your /var/lib/boot2docker/profile inside the boot2docker VM.

    See the boot2docker README file for more information.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.