Docker Community Forums

Share and learn in the Docker community.

Kitematic connects to VirtualBox machine but can't connect through docker-machine

Docker Toolbox for Windows 10 Home is driving me absolutely insane.

Here is an extremely simple compose file I’m trying to use.

version: "3"

services:
  my-wpdb:
    image: mariadb
    restart: always
    ports:
      - "8081:3306" # host/container
    environment:
      MYSQL_ROOT_PASSWORD: password
  my-wp:
    image: wordpress
    restart: always
    volumes:
      - ./:/var/www/html
    ports:
      - "32773:80" # host(access via browser)/container
    links:
      - my-wpdb:mysql
    environment:
      WORDPRESS_DB_PASSWORD: root
      MYSQL_ROOT_PASSWORD: password

After starting my virtual machine with docker-machine start and running docker-compose up -d, the containers are running. However I cannot connect to ANY port. Not 32773, 8081, or 2376. Browser is unable to connect.

However whenever I use Kitematic to add wordpress and mysql containers I’m able to get a preview and connect in the browser. I’ve tried everything from port forwarding in Virtualbox and every connection is just refused. This has been driving me nuts for days and there seems to be no support, I’m desperate.