python - I'm having trouble using docker-py in a development environment on OSX -


i creating python code built docker image. intent docker image have capability of running other docker images on host.

let's call these docker containers "daemon" , "workers," respectively.

i've proven concept works running "daemon" using

-v /var/run/docker.sock:/var/run/docker.sock

i'd able write code work anywhere there exists /var/run/docker.sock file.

since i'm working on osx machine have use docker quickstart terminal. such, on system there no docker.sock file.

the docker-py documentation shows way capture docker client:

from docker import client

cli = client(base_url='unix://var/run/docker.sock')

is there hackery can on system can instantiate docker client way?

can create docker.sock file on file system , have sym-linked vm docker host?

i don't want have build docker image every time test single line code change... help!!!


Comments