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
  • ports:
        - "8080:8080"
        - "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
      • open
      • echo ${DOCKER_HOST_IP}
      • open http://${DOCKER_HOST_IP}:8080 (// doesn’t open – times out/connection refused)
      • curl
        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.