February 2019
Intermediate to advanced
240 pages
5h 25m
English
Besides starting and stopping our services, there are a few more things that we do frequently as part of our day-to-day development. We’re going to take a whistle-stop tour of the highlights, since we’ll be needing them in the upcoming chapters.
We’ve seen that the docker-compose up, without the -d option, attaches to the containers it starts and follows their output. However, there’s also a dedicated command for viewing the container output, which is more flexible.
Let’s view the container logs:
| | $ docker-compose logs -f web |
You should see some output showing the Rails server starting up, similar to:
| | web_1 | => Booting Puma |
| | web_1 | => Rails 5.2.2 application starting in development ... |
Read now
Unlock full access