我在一个自定义的docker容器中运行testcafe,并且在不同的docker容器(或docker-compose)中运行web应用程序。如果我从web浏览器使用应用程序,我会转到localhost:8080
如何从testcafe docker容器访问应用程序?
> docker run -ti mycustom/testcafe firefox /tests/*
Error details:
Failed to find a DNS-record for the resource at "http://localhost:8080/".我试图添加--network=network-name,但它没有帮助。
发布于 2019-06-05 22:32:36
您不需要使用docker-compose显式配置网络。关于没有docker-compose的解决方案,请参考this线程。
https://stackoverflow.com/questions/56432240
复制相似问题