- This requires patchsets proposed to Docker Buildx
VS Code extension for interactive debugging of Dockerfile based on Docker Buildx (under proposal).
- Breakpoints and step execution
- Inspecting steps
- Interactive shell on a step with your own debugigng tools
- Rootless execution
- Docker Buildx
- patched with docker/buildx#1656
In the launch configuration (e.g. launch.json on VS Code), the following properties are provided.
programstring REQUIRED : Absolute path to Dockerfile.stopOnEntryboolean : Automatically stop after launch. (default:true)targetstring : Target build stage to build.build-argsarray : Build-time variables.ssharray : Allow forwarding SSH agent to the build. Format:default|<id>[=<socket>|<key>[,<key>]]secretsarray : Expose secret value to the build. Format:id=secretname,src=filepathrootstring : Root directory for controller server.controller-modestring : Mode to launch the controller (localvsremote(default))server-configstring : Path to the controller server configuration file.
Common and mandatory properties are the following (see VS Code documentation for details).
type: Type of debugger to use. Must bedockerfile.request: The request type.launchis only supported as of now.name: The reader-friendly name of this configuration.
TBD