thiagoralves / OpenPLC_v3

OpenPLC Runtime version 3
1.06k stars 432 forks source link

docker run failed with docker error: Error response from daemon: OCI runtime create failed:./start_openplc.sh: no such file or directory: unknown. #161

Closed songku closed 2 years ago

songku commented 2 years ago

I followed the installation guide on https://github.com/thiagoralves/OpenPLC_v3 on my ubuntu 20.04.1,and I have installed through ./install.sh linux.I also build on docker throuth docker build -t openplc:v3. The above procedure worked well until I execute:docker run -it --rm --privileged -p 8080:8080 openplc:v3 with the following wrong message: docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "./start_openplc.sh": stat ./start_openplc.sh: no such file or directory: unknown. However,I can start webui by cd ../OpenPLC_v3/webserver,and execute ./start_openplc.sh.It shows that the webui have been started on localhost:8080 and I can login in. How can I fix this problem?Do I need to install agin from the beginning?

songku commented 2 years ago

I fix this problem by drag the start_openplc.sh file to the higher level of the folder, which contains the webserver.py and it works well.