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

[help wanted] Serverless says docker is not installed but it is. #4695

Closed
SomeNerdNamedSteve opened this issue Jan 30, 2018 · 3 comments
Closed
Labels

Comments

@SomeNerdNamedSteve
Copy link

SomeNerdNamedSteve commented Jan 30, 2018

I am running into issues with Docker. While docker is installed, I get the error that docker not found! Please install it.. However, docker is installed. Here is my yml file:

service: image-bot

provider:
name: aws
runtime: python3.6

functions:
hello:
handler: handler.image
events:
- http:
path: /image
method: post

plugins:

  • serverless-python-requirements

custom:
pythonRequirements:
dockerizePip: non-linux
`

Is there anything else I need? I have a requirements.txt file as well.

@waylanwong
Copy link

Had the same problem until I created and activated a virtualenv as described in this documentation page:

https://serverless.com/blog/serverless-python-packaging/

@brianneisler
Copy link
Contributor

Closing this as @waylanwong has a suggested answer with no response. Will reopen if there are further issues.

@estahn
Copy link

estahn commented Jul 28, 2022

For everyone coming here with this issue. The error message is misleading, the docker command execution failed and everything is munched into this single error message. In my case, the Dockerfile had an issue and wasn't building:

Error: `docker build -f Dockerfile -t sls-py-reqs-custom .` Exited with code 1`.

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

No branches or pull requests

5 participants