rabbah commented on issue #2440: Use docker API via unix-socket in 
/var/run/docker.sock
URL: 
https://github.com/apache/incubator-openwhisk/pull/2440#issuecomment-312435272
 
 
   I have not succeeded in using docker for mac yet.
   First issue was getting ansible to locate `docker-py` correctly. The best 
solution was setting PYTHONPATH in my enviornment (although likely this should 
be in an env file for ansible)
   
   ```
   > export PYTHONPATH=/usr/local/lib/python2.7/site-packages
   ```
   
   after that, i'm running into deployment issues:
   ```
   TASK [prereq : install requests] 
*************************************************************************************************************************
   Saturday 01 July 2017  10:30:18 -0400 (0:00:00.022)       0:00:01.305 
********* 
   fatal: [172.17.0.1]: FAILED! => {"changed": false, "failed": true, 
"module_stderr": "sudo: a password is required\n", "module_stdout": "", "msg": 
"MODULE FAILURE", "rc": 1}
   ```
   
   and bypassing that since I already installed the prereqs:
   ```
   
   TASK [couchdb : create admin user] 
***********************************************************************************************************************
   Saturday 01 July 2017  10:29:26 -0400 (0:00:02.341)       0:00:06.544 
********* 
   fatal: [172.17.0.1]: FAILED! => {"cache_control": "must-revalidate", 
"changed": false, "content": "{\"error\":\"unauthorized\",\"reason\":\"You are 
not a server admin.\"}\n", "content_length": "64", "content_type": "text/plain; 
charset=utf-8", "date": "Sat, 01 Jul 2017 14:29:27 GMT", "failed": true, "msg": 
"Status code was not [200]: HTTP Error 401: Unauthorized", "redirected": false, 
"server": "CouchDB/1.6.1 (Erlang OTP/17)", "status": 401, "url": 
"http://172.17.0.1:5984/_config/admins/whisk_admin"}
   ```
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to