Home > OS >  Docker - compose an error problem
Docker - compose an error problem

Time:10-13

I shall, in accordance with the docker website docker compose of geting started practice (https://docs.docker.com/compose/gettingstarted/),
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 the
Method 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 stick

CodePudding user response:

Your reply can be posted

CodePudding user response:

RUN the echo - e http://mirrors.ustc.edu.cn/alpine/v3.7/main/& gt; The/etc/apk/repositories

Here 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)
  • Related