When cloning a repository into a volume with the vscode remote extension for containers, an Alpine linux is downloaded from docker.io
to bootstrap the volume (initially). This is only used to create the volume. The image which is then used for my application is the correct one I specified in the Dockerfile (not alpine).
How can I set a custom bootstrap image for bootstrapping the volume? The main reason for this is the security aspect: Only internal images should be used.
Edit: It seems that the bootstrap.Dockerfile
can be manually changed in the extension's folder (<user-folder>/.vscode/extensions/ms-vscode-remote.remote-containers-<version>/scripts/volumeBootstrap.Dockerfile
), but this is not an appropriate solution. How can this file path be specified in e.g. the devcontainer.json
or somewhere else?