It would be good to improve the documentation and the default experience for using devcontainers. I've made progress, but it doesn't seem like I have a working setup yet.
I have done the following in the process of trying to make it work in the flatpak (which appear to all be necessary to have got to this point):
It would be good to improve the documentation and the default experience for using devcontainers. I've made progress, but it doesn't seem like I have a working setup yet.
I have done the following in the process of trying to make it work in the flatpak (which appear to all be necessary to have got to this point):
Exposed
/run/docker.sock
to the container with:Changed the paths to
docker
anddocker-compose
in mysettings.json
, i.e.:But the devcontainer will not start because it cannot find
buildx
:I've also tried adding a link from
/usr/bin
todocker-buildx
(there was already one there fordocker-compose
).If I open an integrated terminal, I can reproduce the failure with:
And then I got it to work by creating scripts in
/usr/local/bin
that I point to in mysettings.json
:The file contents are as follows:
/usr/local/bin/in-flatpak-do-host-spawn_docker
/usr/local/bin/in-flatpak-do-host-spawn_docker-compose
But then the devcontainer startup process seems to hang here: