Virtualbox: how to pull image from registry in parent docker host?

Ubuntu 16.04, docker 1.13. docker-machine 0.9.0-rc2

I created a vbox docker-machine, and ssh into it. Once inside, I can pull images from the DockerHub, meaning network setting is working fine.

How can I pull image from local registry setup on the docker host?

Follow the instructions in https://github.com/boot2docker/boot2docker to add certs for a custom registry, or modify the /var/lib/boot2docker/profile to add --insecure-registry whatever:5000, or create machine with --engine-insecure-registry, etc…

Thank you. it works after I added a file /etc/docker/daemon.json with the line below.
{“insecure-registry”:[hostname:5000"] }