这是使用“ 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/。