D
Docker
Docker is a platform for developing, shipping, and running applications in lightweight, portable containers.
What is Docker?
Docker is an open-source platform that automates the deployment of applications inside lightweight, portable containers. Containers package an application with all its dependencies, ensuring consistent behavior across environments.
Docker Concepts
- Image: Read-only template containing application and dependencies
- Container: Running instance of an image
- Dockerfile: Script defining how to build an image
- Registry: Repository for storing and distributing images
- Docker Hub: Public registry for Docker images
Docker Benefits
Consistency across environments, isolation between applications, efficient resource usage, fast startup times, and simplified deployment workflows.
Common Misconceptions
- "Docker is a VM" - Containers share the host OS kernel
- "Docker is inherently secure" - Requires security configuration
- "One container per application" - One process per container is best practice