python


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


I am creating Python code that will be built into a docker image.
My intent is that the docker image will have the capability of running other docker images on the host.
Let's call these docker containers "daemon" and "workers," respectively.
I've proven that this concept works by running "daemon" using
-v /var/run/docker.sock:/var/run/docker.sock
I'd like to be able to write the code so that it will work anywhere that there exists a /var/run/docker.sock file.
Since I'm working on an OSX machine I have to use the Docker Quickstart terminal. As such, on my system there is no docker.sock file.
The docker-py documentation shows this as the way to capture the docker client:
from docker import Client
cli = Client(base_url='unix://var/run/docker.sock')
Is there some hackery I can do on my system so that I can instantiate the docker client that way?
Can I create the docker.sock file on my file system and have it sym-linked to the VM docker host?
I really don't want to have to build my docker image every time I was to test a single line code change... help!!!

Related Links

Python Dictionary Sorting Using Sorted
xlwt: 'CommonToken' object has no attribute 'txt'
Python repeat while user enters negative number
Assign different operators during python loop
When installing through pip, how do I tell matplotlib how to find tkinter?
Regex for weekdays in python [closed]
Detect Changes to Environment Variables
Select all by type: Geometry. Equivalent Python script?
Sorting algorithm doesn't work
How to avoid “Name 're' is not defined” error while connecting pycharm remote debugger?
Python - Generate binary list with itertools
Capture domain and path from URL with regex
Pylab animation multiple figures
Django Password Reset Email Error 10060
Excel delimited file
Why is scrapy dumping thousands of `ERROR` log messages without any description of the error?

Categories

HOME
symfony
signalr
raspbian
webrtc
bing
windows-7
wxwidgets
otrs
actionscript
requirejs
ng-admin
deeplearning4j
getorgchart
image-recognition
datagrip
lenskit
riak
jquery-terminal
yeoman-generator
google-api-java-client
google-maps-android-api-2
apply
facebook4j
richfaces
tarantool
restfb
croppic
rhandsontable
pdflatex
body-parser
modulo
threshold
jboss-esb
text-files
codesys
axis-labels
dql
agent
tic-tac-toe
soundjs
web-development-server
ssh.net
lftp
pytest-django
goquery
rhel6
ogre3d
decompress
httplib2
jszip
barcode-printing
android-navigationview
spring-ioc
manifest.mf
wcf-ria-services
ruby-2.0
gameanalytics
jackson-databind
string-parsing
mongo-c-driver
mfc-feature-pack
self-hosting
intellitest
sevenzipsharp
paypal-nvp
ipojo
mptcp
castle-windsor-3
on-duplicate-key
leadtools-sdk
gulp-livereload
code-first-migrations
robocode
sysfs
hana-xs
c++-actor-framework
java-melody
belongs-to
cpu-speed
collabnet
author
io.js
argument-passing
data-generation
help-viewer
openkinect
java.util.date
nscolor
ftp4j
apache2.2
cgimageref
bulbs
deploying
parameterization
text-services-framework
surf
coff
adsl
msn
asp.net-routing
hibernate3-maven-plugin
gears
project-lifecycle
data-execution-prevention

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App