Docker build inside serverless
Hey all, I am pretty new to serverless, python and docker. I am trying to build an image that I want to run on runpod, but I am running into the issues that some of the dependencies cannot be build on my macbook pro or github actions.
So I thought, why not build the image on runpod as well.
I created the following
handler.py
(See message below)
But receive the below error.
I think it is because docker is not running within the container. Is there a way to make this work?
Dockerfile
9 Replies
you cant run docker in docker
is it not possible with something like this? https://stackoverflow.com/a/68975166
Stack Overflow
Python Docker SDK inside container
Im wondering if there is a way to use Python Docker SKD:
https://docker-py.readthedocs.io/en/stable/index.html#docker-sdk-for-python
inside a container and still be able to menage outside container...
runpod pods are docker containers and it's not possible to run another docker in docker
The objective is to run build a docker container and deploy it to runpod to run
Yes, I want to clone a github repo, build the image, then push the image to ghcr. Because I cannot build certain images on my Macbook or Github Actions
You can use CPU Pod, supposedly, I haven't tried
If you are familiar with CLI
Well also, i think u can specify --platform for the amd64 platform
on mac, i believe
with docker
https://depot.dev/orgs
I use depot personally, but it costs money
but they have a 7 day trial