Skip to content

Using Docker api from a function #1451

Answered by eldadfux
marcbenedi asked this question in Q&A
Discussion options

You must be logged in to vote

appwrite-worker-functions has access to the docker.sock so it can spin up isolated runtime environments to run your functions. Exposing the Docker API to any function will be considered a big security weakness.

If you still want to achieve that you can run your own Docker container with access to the docker.sock. This can container can expose an API that your Appwrite functions can use. Be careful and make sure only authorized clients can access this kind of proxy.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marcbenedi
Comment options

Answer selected by eldadfux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants