diff --git a/lib/modules/webserver/server.js b/lib/modules/webserver/server.js index 53eda52c3..361e67ec9 100644 --- a/lib/modules/webserver/server.js +++ b/lib/modules/webserver/server.js @@ -47,7 +47,10 @@ class Server { ("http://" + canonicalHost(this.hostname) + ":" + this.port).bold.underline.green, this.port); if (!opened) { - opn(`http://${canonicalHost(this.hostname)}:${this.port}`); + // fail silently, e.g. in a docker container, by cacthing promise + // rejection w/ a noop + opn(`http://${canonicalHost(this.hostname)}:${this.port}`) + .catch(function () {}); opened = true; } });