-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adding an additional build option via options is not added to the docker buildx command #9417
Comments
Could you retry with VS Code Insiders (http://code.visualstudio.com/insiders/) and the latest Dev Containers pre-release (currently 0.335.0)? The latest Dev Containers pre-release doesn't support VS Code 1.85. Alternatively you could wait for VS Code 1.86 and a new Dev Containers stable release to come out (expected next week). |
just tried switching to pre-release - right after switching it shows 0.337, but after reloading window or restarting vscode it shows 0.330. And build options does not work in that version (whatever is installed), options just ignored |
@pmunin You get 0.330.0 when you are installing in VS Code 1.85. Please try with VS Code Insiders (make sure you update it to the latest version): http://code.visualstudio.com/insiders/ |
Thanks for clarification @chrmarti (and sorry for missing your older comment where you already explained that) - as I mentioned in another issue - unfortunately I cannot afford installing vscode insider on my work environment, I'll just wait till it becomes available in stable vscode build and monitor this thread |
Can confirm, it works in VS Code 1.86.0 and Dev Containers v0.338.0. At least my |
Made it work only after doing it via multiline:
will fail if you do it in one line:
That was confusing, but glad that it worked somehow. The more serious issue that UPDATE:
|
I can also confirm that it now works with VSCode 1.86.0 and Dev Containers extension v0.338.1. Many thanks for that. |
@pmunin The individual arguments need to be listed as separate strings, these can be on a single line. E.g., the following would also work: "options": [ "--ssh", "default" ] This may seem technical, but it avoids the need for any parsing to separate the arguments later (e.g., like a shell would do, but we spawn the build command without using a shell). When using Docker Compose we are avoiding duplicating options available in the docker-compose.yml to keep the devcontainer.json simple. |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
As requested in #3545 (comment), I create this issue as something seems not to work correctly with the additional build options.
When adding eg.
--add-host
, this option is not added to the build command and therefore the host is not available.The build command looks like:
Start: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-roemer/container-features/0.55.0-1705941702893/Dockerfile-with-features -t vsc-tmp_feature-75968010dd2d4d01cc001523df80afe29b3349da87789eac4fabc7f9c36c120c --target dev_containers_target_stage --no-cache --pull --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /home/roemer/projects/tmp_feature/.devcontainer
Steps to Reproduce:
build
command contains this additional optionDoes this issue occur when you try this locally?: -
Does this issue occur when you try this locally and all extensions are disabled?: -
The text was updated successfully, but these errors were encountered: