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

Sh bad substition error #351

Open
sean-smith opened this issue Jun 5, 2024 · 0 comments
Open

Sh bad substition error #351

sean-smith opened this issue Jun 5, 2024 · 0 comments

Comments

@sean-smith
Copy link
Contributor

sean-smith commented Jun 5, 2024

If you see the following error when building a dockerfile:

sh: 1: Bad substitution

It's likely caused by your dockerfile running sh and not bash which doesn't support variables with v. such as the version of AWS OFI NCCL:

The solution is to set the shell in your Dockerfile:

SHELL ["/bin/bash", "-c"]
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

2 participants