-
Notifications
You must be signed in to change notification settings - Fork 293
Unable to get good bind path format / docker: Error response from daemon #300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm having the exact same problem on Windows 10 Pro. |
I'm not sure this will friends but I had the same issue myself, Windows 10 1803. Simply un-sharing my C drive and re-sharing it got me past the I can't even take credit for the solution, I pulled it from this thread: #210 I have a new error that I'm sure is waiting just beyond this one for you. |
The unsharing/resharing has not worked for me. I've been at this for almost 3 weeks with no resolution at this point. |
I was unable to make the plugin work but I found a better solution anyhow - Lambda Layers. This is a bonus because it reduces the size of the lambda and allows code/file reuse. There is a pre-built lambda layer for numpy and scipy that you can use, but I built my own to show myself how it all works. Here's how I made it work: Create a layer package:
|
Yeah, if all you need is numpy & scipy, I definitely recommend using AWS's layer. Creating your own on EC2 or with docker (but you'll need to figure out the bind path 😉) or a VM is definitely a good option, you can also use the serverless framework to publish your layer: https://serverless.com/blog/publish-aws-lambda-layers-serverless-framework. I'd recommend the last technique used, the one with cloudformation exports. |
I only use the EC2 because I have a nice development AMI that is essentially a fully configured Ubuntu machine with remote desktop connection. Ubuntu for Windows would work ok just fine as well [EDIT: Ubuntu for windows does not work with layer publishing as of 1/4/19]. The reason I push the layers separately from serverless is because I want to use the layers across multiple services (e.g., a py36_core_dependencies layer with numpy, scipy, scikit-learn, etc.). It's easy to then add the add the layers via an env.yml or the serverless.yml. While I wish I had made this plugin work, I think layers is a better overall solution because it reduces lambda package size and allows code reuse across services. |
Ok so, to get all this stuff to fly on Windows 10 (today's challenge, as I had to switch from a work Mac)...
(we're removing the extra double quotes - this deals with the complaints about incorrect characters in paths)
(this deals with the package defaulting to 'python.exe' which clearly won't work inside the docker container). |
I solved the problem by changing the name of the shared folder from |
I'm trying to debug this.. does anyone know how to run docker toolbox in windows in a VirtualBox VM? I don't have a windows machine :/ |
Hey 👋 I'm closing this ticket as it looks like it's heavily outdated, we can of course reopen it if needed 👍 |
I've been beating on this for 3 days and been through all sorts of forum issues and posts and cannot resolve. I'm trying to package numpy in a function, individually building requirements (I have multiple functions with multiple requirements that I'd like to keep separate).
Environment:
Windows 10 Home
Docker Toolbox for Windows:
serverless.yml
Dockerfile
I have my project files in C:\Serverless\test. I run
npm init
, followed bynpm i --save serverless-python-requirements
, accepting all defaults. I get the following onsls deploy -v
. even though I've added C:\ to Shared Folders on the running default VM in VirtualBox, and selected auto-mount and permanent.If I move my project to C:\Users, I get this instead:
I'm a bit at a loss as to what to do next and advice would be greatly appreciated. TIA.
The text was updated successfully, but these errors were encountered: