for clifs_web_1 Cannot start service web: OCI runtime create failed
XuecWu opened this issue · 6 comments
Hi, @johanmodin Thank you for your great work! But I have faced some problem with clifs:
As shown below, I have created my ckifs_search-engine
, That means that I have created my docker image, right? But I encountered errors while bringing up the project.
Step 15/18 : RUN python3 -c "import clip; clip.load('$MODEL', device='cpu')"
---> Running in 7145f0df5bd7
100%|#######################################| 402M/402M [03:58<00:00, 1.77MiB/s]
Removing intermediate container 7145f0df5bd7
---> a62989bd9503
Step 16/18 : RUN ln -sf /usr/bin/python3 /usr/bin/python
---> Running in a0e80becb3cf
Removing intermediate container a0e80becb3cf
---> fd581f18de7d
Step 17/18 : COPY app/ /app
---> 3525ae426cda
Step 18/18 : CMD python clifs.py
---> Running in 89927927e5ef
Removing intermediate container 89927927e5ef
---> fab0dbbe3a71
Successfully built fab0dbbe3a71
Successfully tagged clifs_search-engine:latest
Creating network "clifs_default" with the default driver
Creating clifs_web_1 ... error
Creating search-engine ...
ERROR: for clifs_web_1 Cannot start service web: OCI runtime create failed: container_linux.go:345:
Creating search-engine ... done
ERROR: for web Cannot start service web: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: "/clifs/entrypoint.sh": permission denied": unknown
ERROR: Encountered errors while bringing up the project.
So I want to know how to fix it and how to use it.
Thank you for your answering!!!
My docker version is 19.03.1 and the version of docker-compose is 1.29.2.
I ran docker-compose build && docker-compose -f docker-compose-gpu.yml up
I have solved the problem above ,but I encountered another one... I cant open the website by google and edge.
As shown below, I have tried http://172.18.0.2:5000/, but it doesnt work.
Hey, that address is only valid within the docker network and is not pointed to the web server, but rather the model server. Could you try going to the localhost address as is described in the setup?
Once the features for the files in the data/input directory have been encoded, as shown in the log, navigate to 127.0.0.1:8000 and search away.
@johanmodin Thank you for your reply! I have taken a try , after I ran docker-compose build && docker-compose -f docker-compose-gpu.yml up, I got this on google as shown blow.
Cant get it just as before.
You could also try to browse to <your_machines_local_ip>:5000, e.g., 192.168.1.100:5000. If that doesn't work, I would assume that the problem is with the network configuration of your machine.
Thank you for your reply! I will take a try at once.