Use the VM virtual machine installation ubuntu18.04
System error
The Error relocating/usr/local/lib/libpython3.7 Margaret spellings o. 1.0: getrandom: symbol not found
ERROR: The Service 'web' failed to build: The command '/bin/sh -c pip3 install - r requirements. TXT' returned a non - zero code: 127
Have stepped over the pit under the predecessors to solve?
CodePudding user response:
Problem solving, the reason is getrandom dependency problem, there are two methods to solve theMethod one: a finer libc. Musl to the latest version, "sudo apt - get upgrade musl - dev"
Method 2: delete Dockerfile file, "RUN apk add - no - cache GCC musl dev Linux - headers"
Refer to the link: https://github.com/docker/compose/issues/6292:
CodePudding user response:
His reply couldn't bear to stickCodePudding user response:
Your reply can be postedCodePudding user response:
RUN the echo - e http://mirrors.ustc.edu.cn/alpine/v3.7/main/& gt; The/etc/apk/repositoriesHere below version to v3.12
To speed up, replace the Dockerfile warehouse source, pay attention to the use of version (do not change the warehouse source can be seen when using the v3.12 version)