To overcome these limitations, you'll bridge these two systems by doing the following: Any servers running within the container can't listen to requests made from a local web browser. Any files created within the container won't be accessible locally. The container operating system runs in isolation from the local operating system. Within that context, you'll use a container shell to issue commands to create and run a Node app. Local Operating System: Using a CLI application, such as Terminal or PowerShell, you'll use a local installation of Docker to build images and run them as containers.Ĭontainer Operating System: Using Docker commands, you'll access the base operating system of a running container.
Throughout this tutorial, you'll be working in two realms: You'll create a portable Node development environment that solves the 'But it runs on my machine' problem that constantly trolls developers since containers are created predictably from the execution of Docker images on any platform. In this tutorial, instead of creating and running a Node app locally, you'll to take advantage of the Debian Linux operating system that official Docker Node images are based on.