R
RunPod2mo ago
Anan

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
Madiator2011 (Work)
It's in our FAQ no docker in docker allowed
Anan
AnanOP2mo ago
not even possible with bazel?
Madiator2011 (Work)
I mean docker will only work on cpu pods but not on gpu
Anan
AnanOP2mo ago
oh thanks btw why does my pod keep getting disconnected and all the data getting wiped
Madiator2011 (Work)
wdym?
Anan
AnanOP2mo ago
after I start my pod after like 10 mins its says disconnected "connection closed"
Madiator2011 (Work)
what template? where disconnect?
Anan
AnanOP2mo ago
pytorch cuda
Madiator2011 (Work)
and where it's disconnecting anything in logs?
Anan
AnanOP2mo ago
No description
Anan
AnanOP2mo ago
this is the pod
Madiator2011 (Work)
I do not see anthing wrong here
Anan
AnanOP2mo ago
No description
Anan
AnanOP2mo ago
its shows this randomly
Madiator2011 (Work)
I would not use web terminal it's buggy use jupiter or normal ssh
Anan
AnanOP2mo ago
i started using Basic SSH Terminal the problem still exists
Madiator2011 (Work)
photo shows you use web terminal
Anan
AnanOP2mo ago
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
Madiator2011 (Work)
I mean do not use web terminal and use basic ssh or jupiter
Anan
AnanOP2mo ago
ok ty btw why is the internet connection so slow sometimes its below 100kb
Anan
AnanOP2mo ago
No description
Madiator2011 (Work)
btw I noticed you use spot instance so it could mean someone over bid you and it cause you pod to stop
Anan
AnanOP2mo ago
so what is the solution is there anything i should do to prevent this
Madiator2011 (Work)
use on demand pod
Anan
AnanOP2mo ago
can i use spot instance without losing data
Madiator2011 (Work)
All data saved on /workspace should be there
Anan
AnanOP2mo ago
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?
Madiator2011 (Work)
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
Anan
AnanOP2mo ago
tysm so much this was really helpful ❤️
tzktz
tzktz2mo ago
@Anan how to install the docker in rtx4090 pod?
Anan
AnanOP2mo ago
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
tzktz
tzktz2mo ago
in cpu pod it's possible to build docker image?
Anan
AnanOP2mo ago
i think its possible I'll send a link of their documentation about docker
Anan
AnanOP2mo ago
go through these you might find something. I'm new to this topic so I recommend you ask someone who knows more about it
tzktz
tzktz2mo ago
shows error @Anan @ai-helper-runpod @Madiator2011 (Work)
No description
Anan
AnanOP2mo ago
i had same error is that gpu or cpu
tzktz
tzktz2mo ago
Any solutions ?
Anan
AnanOP2mo ago
i didnt find any as i was using gpu instance
nerdylive
nerdylive2mo ago
Use cpu instance for docker in docker, you have to modify docker's start script abit to get it working I forget which one
osalvadormx
osalvadormx4d ago
Built docker image in cpu and after that import to you gpu
Want results from more Discord servers?
Add your server