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 · 1 comment
Open

Sh bad substition error #351

sean-smith opened this issue Jun 5, 2024 · 1 comment
Labels

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"]
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants