Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-in-docker fails to install with error #526

Closed
dzmitry-lahoda opened this issue Apr 10, 2023 · 4 comments
Closed

docker-in-docker fails to install with error #526

dzmitry-lahoda opened this issue Apr 10, 2023 · 4 comments

Comments

@dzmitry-lahoda
Copy link

# TODO: build using Nix: https://github.com/microsoft/vscode-dev-containers/blob/main/containers/alpine/.devcontainer/base.Dockerfile

  "features": {    
    "ghcr.io/devcontainers/features/docker-in-docker:2": {
      "installDockerBuildx" : false,
      "moby": false,
      "installDockerBuildx" : true
    }
  }

imho seems better base image on debian for codespace with which microsoft tests end to end. basically codespace initiative non composable garbage if you are not going mainstream.

@dzmitry-lahoda
Copy link
Author

it still fails, but not that reason

@edulix
Copy link

edulix commented Oct 1, 2023

@dzmitry-lahoda did you solve this issue? How? I'm trying to use docker-in-docker but the feature install fails just like you said, and docker-outside-of-docker has this issue devcontainers/features#171 so I'm a bit stuck. Can we reopen this?

@dzmitry-lahoda
Copy link
Author

you can check this NixOS/nix#6680 .

people claimed it is solved - i do not trust them. they added nix with single package but not ecosystem.

ecosystem when i just shell into codespace

so i did it
https://github.com/ComposableFi/composable/blob/main/Dockerfile

https://github.com/ComposableFi/composable/blob/main/.devcontainer.json

idea is to setup home manager in docker

the only issue i did not fixed nicely, at least I think, I had to hardcode some ENV vars into docker, while they must be in home manager. ufortunately home manager has ugly situation reagrding env vars

https://github.com/ComposableFi/composable/blob/d784d7600802f1c523bf55bb4502013ace79585d/Dockerfile#L72

but other than that - it works perfect.

@dzmitry-lahoda
Copy link
Author

i am not expert and cannot fix it consistently,

MS does iditiotic things to nix and claims it is right.

devevn is cool, but I am not so cool.

home manager ENV vars is weird.

so kind of sure, nice solution exsits, but given MS agains it - which is super clear after answers from 3 codespaces devs - i doubt solution would be ever nice until they will be aligend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants