docker的新手,无法弄清楚如何查看网站

时间:2019-12-20 16:09:15

标签: ruby-on-rails docker

这是使用“ docker run -it --rm foo / foobar”运行Dockerfile之后的输出。

=> Booting Puma
=> Rails 4.2.10 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Puma starting in single mode...
* Version 3.10.0 (ruby 2.4.2-p198), codename: Russell's Teapot
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://localhost:3000
Use Ctrl-C to stop

当我运行Rails服务器时,通常只需要http://localhost:3000/

0 个答案:

没有答案