VSCode dev container settings #912
Replies: 6 comments 6 replies
|
Experiencing the same situation. |
|
I'm interested in using this for dev containers too, did you ever get it working? |
|
I just tried it, seemed to work for me: container create --name swift-ntp-dev --cpus 8 --memory 8g -d -v "${PWD}:/workspace" -w /workspace swift:6.2.3 sleep 3600000
container start swift-ntp-dev
code .
|
For me it seemed that most of the UI and infra in the VS Code Remote containers extension is still oriented around Docker being in use and available. Any actual integration seems to be still missing from the UI, except that as @jglogan notes above there's a "Dev Containers: Attach to Running Apple Container..." available in the command palette. I don't think this will help:
Even when putting the full path (via All that to say, for me adding only the That's for a very limited definition of "work" and the Containers extension seems to still very much want a working install of either a Docker or Podman runtime backing the UI panel you'd normally use. But you can leave that whole panel broken and just ignore it; the "Attach to Running Apple Container" command seems to be the only working entrypoint anyway. |
|
Have you tried using: https://github.com/us/mocker . It has support for docker compose mocking too. apple/container does not support compose files. I have seen the issue with a cli not being found is related to the path. The UI apps need the path to be setup in a different way. It works for @jglogan because he is running code from the terminal, where the path has been setup correctly. If you need more help, check the StackOverflow answers in: https://stackoverflow.com/questions/22465332/setting-path-environment-variable-in-macos-permanently The simplest workaround is to start a terminal and run code from there. |
|
Hi! I created a native Swift CLI that reads You can start a dev container from a folder or clone a git repository into a volume. There's also an optional Some examples: I created this for myself, but you might want to check it out: https://github.com/wcgomes/apple-devcontainers. |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
I'm trying to use vscode dev containers support for apple containers. I've enabled the experimental stuff and I can see attach to running container in the command palette however, when I open the solution it's prompting me to me to open the project in a dev container as I have a dev container json file.
When I try to run it, it's asking for docker.
I put this in my settings:
{ "remote.autoForwardPortsSource": "hybrid", "dev.containers.experimentalAppleContainerSupport": true, "dev.containers.dockerPath": "container", "dev.containers.dockerComposePath": "container" }So I'm not sure how I'm supposed to run this for dev containers in vscode? I've seen a load of articles about it but nobody explains the vscode settings in any detail.
I get the error:
Command not found: 'container'. Check the license for details.
however I have confirmed that container works from the command line, even in vscode:
Any help would be appreciated.
All reactions