Error message when buliding sample NodeJS cloudron app
-
I have installed docker and am trying to locally build the cloudron tutorial nodejs app but I am hitting an error that doesn't make sense.
Docker version 24.0.6, build ed223bc
Here are the commands I am running:
git clone https://git.cloudron.io/cloudron/tutorial-nodejs-app docker build -t myapp . docker run myapp
This results in the output:
exec /app/code/start.sh: no such file or directory
If I change the dockerfile to just execute bash ,
CMD [ "bash" ]
, it runs. with the exec error.If I enter the container I can confirm the file is there, the permissions are correct with execute enabled, but trying to execute the file directly without prefixing it with bash doesn't work.
Any idea what might be causing this?
-
Seems to work here atleast. I had to comment out the chown /app/data line because that will work only when deployed in Cloudron.
$ docker run myapp Starting Node.js app Server running at port 3000
-
@girish I am running this on Windows 11 professional with docker using the windows subsystem for linux.
I am working on trying this from an Ubuntu virtual machine.
What operating system and docker version are you using?
-
I am using Ubuntu 22.04 and docker 23.0.6 . I don't have any experience with WSL, maybe someone else can comment if things are different there.
-
I tried this on an Ubuntu 22.04 virtual machine and it worked properly as expected. I am not sure what the issue is but Windows 11 pro with Windows Subsystem for Linux 2 and Docker version 24.0.6 results in the
no such file or directory
.I did test other non cloudron related containers with Docker for windows using WSL2 and they worked fine.
I also reconfigured docker for windows to use it's own VM hosted on Hyper V, no longer using Windows Subsystem for Linux 2, and it also had the same problem with
no such file or directory
.I will stick to running the build process from a Ubuntu VM for now and at present it doesn't look like Docker for Windows, however it is configured, is usable for building containers to be run on cloudron.