[英]Error when docker-compose “/usr/local/bin/python: error while loading shared libraries: libpython3.8.so.1.0: ”
Hi i tried run my project with docker, the problem ocurred when i build the image, i use the commando "whereis python" and recive the path of directory but i build the image and the error is the next:嗨,我尝试使用 docker 运行我的项目,当我构建图像时出现问题,我使用突击队“whereis python”并接收目录路径,但我构建图像,错误是下一个:
/usr/local/bin/python: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory
I use manjaro, the problem is the folder /usr/local/bin/python dont exist, I try modified the file我使用manjaro,问题是文件夹/usr/local/bin/python 不存在,我尝试修改文件
/usr/local/bin/python
and add the path of python which is并添加 python 的路径,即
include /usr/lib/python3.8/
the Dockerfile Dockerfile
FROM python:3.9.0b1-alpine3.11
WORKDIR /cloud
ENV FLASK_APP Server.py
ENV FLASK_RUN_HOST 0.0.0.0
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY . .
CMD ["flask","run"]
the docker-compose docker-compose
version: '3'
services:
cloud-flask-back:
build: ./Flask
ports:
- "5000:5000"
redis:
image: "redis:alpine"
I hope you can help me我希望你能帮帮我
i resolved it, i use actually manjaro linux and i install docker with snap package, for a estrange error, when I use docker-compose of my project it shows me the error in the title. i resolved it, i use actually manjaro linux and i install docker with snap package, for a estrange error, when I use docker-compose of my project it shows me the error in the title. I resolve it uninstall docker snap我解决它卸载 docker snap
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.