Setting context inside the build element doesn't work
I am using Docker Desktop for Windows v 2.2.0.5 on Windows 10. In my case, VSCode was not able to set the container build context correctly by reading the build.context property. I fixed the issue by setting the context property as mentioned in the schema here: https://code.visualstudio.com/docs/remote/containers#_devcontainerjson-reference.
This commit is contained in:
		@@ -1,8 +1,8 @@
 | 
			
		||||
{
 | 
			
		||||
	"name": "Python 3 Sample",
 | 
			
		||||
	"context": "..",
 | 
			
		||||
	"build": {
 | 
			
		||||
		"dockerfile": "Dockerfile",
 | 
			
		||||
		"context": "..",
 | 
			
		||||
		// Update 'VARIANT' to pick a Python version. Rebuild the container 
 | 
			
		||||
		// if it already exists to update. Available variants: 3, 3.6, 3.7, 3.8 
 | 
			
		||||
		"args": { "VARIANT": "3.7" }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user