docker-machine – connection refused error

I’m using docker-machine, docker-compose on mac OS to start up my container.

In my docker-compose.yml, i have

  • Application takes different amount of memory on different systems
  • How to run Consul on docker with initial key-value pair data?
  • Is it possible to use Gitlab and WordPress container linked to only one Mariadb container?
  • Windows Containers : Unable to ping containers created with transparent network from other hosts
  • Running docker container : iptables: No chain/target/match by that name
  • Tag not found in repository docker.io/minio
  • ports:
        - "8080:8080"
    expose:
        - "3000"
        - "8000"
        - "8080"
    

    Steps to create docker-machine

    • docker-machine create testdocker –driver=virtualbox
    • eval “$(docker-machine env testdocker)”
    • docker-compose up -d (all containers start up properly)

      • docker-machine ip localdocker
        192.168.99.101
      • open http://192.168.99.101:8080
      • echo ${DOCKER_HOST_IP}
        192.168.99.101
      • open http://${DOCKER_HOST_IP}:8080 (// doesn’t open – times out/connection refused)
      • curl http://192.168.99.101:8080
        Connection refused

    I logged into the docker container and on ‘telnet localhost 8080’, i get connection refused error again. What am i doing wrong? I’m stumped.

  • Running the WSO2 Application Manager docker image with custom configuration
  • Is there a way to share files beween Docker containers that don't exist on the host?
  • Manage docker container security patchs
  • PostgreSQL UNIQUE constraint not being applied on Docker container
  • Docker: elastic search image with preloaded schema/data
  • Why does my Dockerfile CMD not work?
  • One Solution collect form web for “docker-machine – connection refused error”

    Try just ping without port number. You can’t ping with port number. Check this answer.

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