Containers provide lightweight isolation of applications and their dependencies. Docker allows users to package applications into images and run them as containers on local machines or remote servers. Key Docker concepts include images, containers, volumes, registries, and tools like Docker CLI, Compose, and Machine. Containers help solve issues like dependency conflicts, running applications across different environments, and isolating multiple instances of services.
9. Container is not VM
● Lite for machine: size, CPU, memory
● VM provides more isolation
● Plenty of tools
● Easy to manage
● A lot of existed images
%23
33. Use Cases
● Work in local, does not work in production
● Use existed app
● Multiple isolated deamon instances
● Bundle you app
● Dependency hell
%87
34. Use Cases
● Work in local, does not work in production
– Locally:
● Build image
● Push to the registry
– Anywhere:
● Pull the image from registry
● Run image
%90