Skip to content

Docker build fails on ln -s on m1 mac #207

@geoff-va

Description

@geoff-va

M1 Mac w/ Mac OS 11.5.1

Docker Desktop: 4.0.0
Docker Engine: 20.10.8
Docker Compose: v2.0.0-rc.2

When running make docker_build, the build fails with the following message:

 => ERROR [5/6] RUN ln -s /usr/bin/python3.8 /usr/bin/python &&     /usr/bin/python3 -m pip install --upgrade pip &&     pip install -r /usr/local/src/xblock-sdk/requi  0.2s
------
 > [5/6] RUN ln -s /usr/bin/python3.8 /usr/bin/python &&     /usr/bin/python3 -m pip install --upgrade pip &&     pip install -r /usr/local/src/xblock-sdk/requirements/dev.txt:
#9 0.174 /usr/bin/ln: failed to create symbolic link '/usr/bin/python': File exists

Seemed to resolve by having it first remove the link then recreate it by using ln -s -f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions