Open wallyschag opened 8 months ago
What does your devcontainer.json
file look like? This error is thrown when we can't find an image, dockerfile, or docker-compose file mentioned in the devcontainer.json
file.
Does it have something to do with the "dockerfile:"
option in my devcontainer.json
file?
My dockerfile in my .devcontainer
file is named Dockerfile.
Hello @wallyschag,
I analyzed the source code and noticed a small difference in the devcontainer.json file compared to vscode. If you want to run a Dockerfile with :BuildImage, you need to change "dockerfile" to "dockerFile", like this:
{ "dockerFile": "./.devcontainer/Dockerfile" }
Be careful with the capitalization between "dockerfile" and "dockerFile".
@jamestthompson3 I think this is a bug. Based on the reference json schema here it should accommodate dockerfile
and dockerFile
. Can I bring a PR in to fix this?
Wow 7 hours ago, I am also having an issue with this great timing :) @thamwangjun.
@jamestthompson3 I think this is a bug. Based on the reference json schema here it should accommodate
dockerfile
anddockerFile
. Can I bring a PR in to fix this?
Feel free to contribute if you have a solution! Thanks for raising the issue!
I am in the root directory of my project and my root directory contains the .devcontainer folder with the devcontainer.json file and Dockerfile files. Is my dockerfile named incorrectly? Thanks.