Chapter 2: Using VirtualBox and Docker Containers for Development
In the previous chapter, we introduced virtualization and containerization. In this chapter, we'll demonstrate how you can use software such as VirtualBox to create virtual machines and we'll use Docker to create containers. The focus of this chapter will be on using these technologies for development on your workstation.
A common problem among developers who work on multiple projects is that, over time, they end up with a lot of software installed on their workstations that they don't currently use. This can be so problematic that the developer might reformat their workstation's hard drive and reinstall the operating system.
Both VirtualBox and Docker containers can be used to resolve this problem. The software you install stays within either the virtual machine's or the container's filesystem and is separate from the workstation's native filesystem. If you delete a virtual machine...