codespace icon indicating copy to clipboard operation
codespace copied to clipboard

Rebuilding Container kills DNS resolver

Open davepwsmith opened this issue 6 months ago • 0 comments

This feature builds and runs great the first time I run it, but when I rebuild the container, the DNS stops resolving.

I also notice that on rebuild the backup at /etc/resolv.pre-tailscale.conf is gone - so I wonder if this is something to do with it not having the right settings at startup? No idea how to fix - blatting the containers and volumes fixes this, but it's a pain to have to do it every time.

Base image:

FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION

features:

"features": { "ghcr.io/devcontainers/features/github-cli:1": {}, "ghcr.io/rails/devcontainer/features/activestorage": {}, "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, "ghcr.io/rails/devcontainer/features/postgres-client": {}, "ghcr.io/tailscale/codespace/tailscale": {} },

davepwsmith avatar Aug 07 '25 16:08 davepwsmith