Skip to content
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

Error response from daemon: invalid mount config for type "bind" #1434

Closed
imagine3D-ai opened this issue Oct 11, 2020 · 7 comments
Closed

Error response from daemon: invalid mount config for type "bind" #1434

imagine3D-ai opened this issue Oct 11, 2020 · 7 comments
Labels
question Further information is requested

Comments

@imagine3D-ai
Copy link

I want to try deploying iris-classifier from Cortex examples folder to check that my Cortex is working, but I'm getting this error:

~/cortex/examples/sklearn/iris-classifier$ cortex deploy

cortex.yaml: iris-classifier (RealtimeAPI): Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/user/cortex/examples/sklearn/iris-classifier

note: deploying an API locally from within a docker container is not supported (although deploying to AWS from within a container is supported)

What should I do to fix this?

@imagine3D-ai imagine3D-ai added the question Further information is requested label Oct 11, 2020
@deliahu
Copy link
Member

deliahu commented Oct 11, 2020

@imagine3D-ai can you describe your setup, for example, which operating system you're on, how you are running the cortex CLI, and how you have installed docker so that the corex cli can access it?

@imagine3D-ai
Copy link
Author

@imagine3D-ai can you describe your setup, for example, which operating system you're on, how you are running the cortex CLI, and how you have installed docker so that the corex cli can access it?

Yes of course. I'm running this on Ubuntu for Windows 10. I've installed cortex cli using this command (found in cortex installation guide) in Ubuntu :
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.20/get-cli.sh)"

@imagine3D-ai
Copy link
Author

@imagine3D-ai can you describe your setup, for example, which operating system you're on, how you are running the cortex CLI, and how you have installed docker so that the corex cli can access it?

and I've installed Docker just by using the official installer: https://hub.docker.com/editions/community/docker-ce-desktop-windows/

@deliahu
Copy link
Member

deliahu commented Oct 11, 2020

My best guess is that the root of the issue is that the docker daemon is running in the windows environment, but the cortex CLI is running in ubuntu. Therefore, the docker daemon does not have access to the ubuntu file system (which the cortex CLI is operating on), since it's running in windows.

If this is the case, there are two possibilities to resolve this:

  1. Install docker in the ubuntu environment instead of in windows
  2. Use cortex to deploy to AWS instead of deploying locally

We are hoping to support windows natively (#715), so you wouldn't have to run in ubuntu, but we don't yet know exactly when that will be ready.

In the meantime, would one of the above options work for you?

@AbbeKamalov
Copy link

My best guess is that the root of the issue is that the docker daemon is running in the windows environment, but the cortex CLI is running in ubuntu. Therefore, the docker daemon does not have access to the ubuntu file system (which the cortex CLI is operating on), since it's running in windows.

If this is the case, there are two possibilities to resolve this:

  1. Install docker in the ubuntu environment instead of in windows
  2. Use cortex to deploy to AWS instead of deploying locally

We are hoping to support windows natively (#715), so you wouldn't have to run in ubuntu, but we don't yet know exactly when that will be ready.

In the meantime, would one of the above options work for you?

Where can I find tutorials on deploying cortex to AWS?

@imagine3D-ai
Copy link
Author

imagine3D-ai commented Oct 12, 2020 via email

@RobertLucian
Copy link
Member

@imagine3D-ai to deploy to AWS (using Cortex), you'll have to first spin up a cluster and then deploy to it your API.

To spin up a cluster, you can either use the CLI's prompt for the cortex cluster up command to feed in your cluster's specs (name, instance type, region, etc) or you can provide your own cluster.yaml config that offers more granular control over your cluster's specs. Here's the template for the cluster.yaml config. And this is the spec for the cortex cluster up command. If you want to provide the -e option to the command to give a specific name to your environment, you might also want to go through the environments docs.

Once the cluster is up, you can then just go to an example and deploy it to the AWS cluster - when deploying to AWS, you'll need to specify the environment to use (the default one for clusters is the aws one, so you'll have to specify that).

We also have a simple tutorial involving the iris classifier API here that shows you how to deploy to AWS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants