sh: can't open 'run.dev.sh': No such file or directory when I mount pwd in volumes in docker-compose.yml
?
#11600
Unanswered
deadcoder0904
asked this question in
Q&A
Replies: 2 comments 7 replies
-
Do you expect that when you mount |
Beta Was this translation helpful? Give feedback.
7 replies
-
fuck it, i couldn't solve it although i've seen many solutions that work for nestjs & nextjs but don't work for me as i use i'll revisit it later. i went with using redis to start the docker container & for everything else, i just start it without docker using working repo -> https://github.com/deadcoder0904/easypanel-nextjs-sqlite |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I face this exact error but Idk how to solve it. Idk if my windows firewall is blocking it & if it is, then how would i solve it. for context, i'm not using docker desktop. just docker with wsl2 on windows 11.
If I remove
- ./:/app
fromvolumes
indocker-compose.yml
then everything works fine. i need that.sh
script to runpnpm db:migrate:dev
to migrate my development database.I'm dockerizing a remix app in node.js.
docker-compose.yml
Dockerfile
run.dev.sh
if i remove the volumes mapping
- ./:/app
fromdocker-compose.yml
, then everything works fine.but if i add it, i get this error:
as said in the other answer, i tried this command:
docker run -it --rm -v "$(pwd):/app" busybox ls -l /app
i got this:
i understood that the error meant that it didn't find
run.dev.sh
in the top-most directory on my host side but i don't know how to solve the error?i tried
$pwd
,$(pwd)
,$(PWD)
,${PWD}
& many other variations. finally, settled on./:/app
as it is the provided solution here that works cross-platform.how do i solve this?
the reason i'm mapping the current directory is because i want hmr/live-reloading to work with remix.
but i have to use docker as i need redis which isn't directly available in windows. of course, i can just start a redis server but i'd like to use docker to control it all.
Beta Was this translation helpful? Give feedback.
All reactions