Creating Machines
If we’re going to deploy our application in production, we need to have somewhere to deploy it to. That means, infrastructure: machine instances capable of running code.
As we saw in Chapter 11, The Production Landscape, there are a number of tools available for creating and configuring our infrastructure. However, since this is a book about Docker, we’re going to stick with Docker’s own tool—Docker Machine—for handling this.
Docker Machine is a command-line tool that can create Docker-ready instances for us. It uses the adapter pattern, providing a number of different drivers[113] capable of creating instances on different platforms. This means we can use similar commands to create instances, whether they’re virtual instances ...
Get Docker for Rails Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.