Build a docker compose yml file
I just made a runpod environment with gpu rtx 4090 and i have a github repository with yml file. I would like to run "docker-compose build" but I can't install docker properly in runpod environment any suggestions or helps please
42 Replies
It's in our FAQ no docker in docker allowed
not even possible with bazel?
I mean docker will only work on cpu pods but not on gpu
oh thanks btw why does my pod keep getting disconnected and all the data getting wiped
wdym?
after I start my pod
after like 10 mins its says disconnected
"connection closed"
what template? where disconnect?
pytorch cuda
and where it's disconnecting anything in logs?
this is the pod
I do not see anthing wrong here
its shows this randomly
I would not use web terminal it's buggy
use jupiter or normal ssh
i started using Basic SSH Terminal
the problem still exists
photo shows you use web terminal
that was before
I didn't take ss of error in basic terminal
i'll send if it occurs again
its currently working fine for like 15 mins
I mean do not use web terminal and use basic ssh or jupiter
ok ty btw why is the internet connection so slow
sometimes its below 100kb
btw I noticed you use spot instance so it could mean someone over bid you and it cause you pod to stop
so what is the solution is there anything i should do to prevent this
use on demand pod
can i use spot instance without losing data
All data saved on /workspace should be there
how exactly do i save it in workspace im kinda new
if I install specific tools or libraries it would still be there after i loggin again?
I mean everything save in /workspace folder should be there.
If you install things from apt they will be wiped as they are installed on container storage.
For python you can create venv at /workspace
tysm so much this was really helpful ❤️
@Anan how to install the docker in rtx4090 pod?
i tried its not possible
you can build docker image for you project I guess but you can't run docker file or docker compose
in cpu pod it's possible to build docker image?
i think its possible I'll send a link of their documentation about docker
Run Docker in Docker on RunPod CPU Instances | RunPod Documentation
This tutorial applies only to RunPod's CPU offering.
Build Docker Images on Runpod with Bazel | RunPod Documentation
RunPod's GPU Pods use custom Docker images to run your code.
go through these you might find something. I'm new to this topic so I recommend you ask someone who knows more about it
shows error @Anan @ai-helper-runpod @Madiator2011 (Work)
i had same error is that gpu or cpu
Any solutions ?
i didnt find any as i was using gpu instance
Use cpu instance for docker in docker, you have to modify docker's start script abit to get it working
I forget which one
Built docker image in cpu and after that import to you gpu