You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a question, for development I have docker compose that runs my different services, and for development I'd like be able to view the browser.I tried several ideas, the least painless one was to run a managed server on the host and connect to that, or just have a chromium instance listening in debug mode, but I cannot get either to work. Are there any better approaches?
var addr = flag.String("address", ":7318", "the address to listen to")
func main() {
flag.Parse()
m := launcher.NewManager()
l, err := net.Listen("tcp", *addr)
if err != nil {
utils.E(err)
}
fmt.Println("rod-manager listening on:", l.Addr().String())
srv := &http.Server{Handler: m}
utils.E(srv.Serve(l))
}
But I get the following error
panic: Get "host.docker.internal:7318": unsupported protocol scheme "host.docker.internal"
The problem is I have to go roundabout way of connecting to host as I have the bridge network mode and I cannot change it to host as I need access to other internal services.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I have a question, for development I have docker compose that runs my different services, and for development I'd like be able to view the browser.I tried several ideas, the least painless one was to run a managed server on the host and connect to that, or just have a chromium instance listening in debug mode, but I cannot get either to work. Are there any better approaches?
And my server thats running
But I get the following error
The problem is I have to go roundabout way of connecting to host as I have the bridge network mode and I cannot change it to host as I need access to other internal services.
Beta Was this translation helpful? Give feedback.
All reactions