Your computer has many different things installed including libraries, programs, drivers, etc. The exact nature of what you have installed is going to be different than that of everyone else, and slight discrepancies can cause something to work properly on one machine and not on another. Docker images basically pretend to be a fresh slate; what’s installed on your computer doesn’t interact with what is in the docker image for the most part. It doesn’t matter what device you are using it on, it should behave the same way on any device. The Dockerfile describes how to create that environment.
At the core, Docker acts like anything within the container is in its own separate operating system, but it’s much more efficient than emulating a full operating system.
Latest Answers