Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
geoff-va opened this issue Sep 23, 2021 · 0 comments
Open

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

geoff-va opened this issue Sep 23, 2021 · 0 comments

Comments

@geoff-va
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant