Decrypting answers...
Ctrl+/ to search
Showing results for ""
No questions found
Try different keywords or check your spelling

Docker Fundamentals

What is Docker and what problems does it solve?

↑ Back to top

What is the difference between Docker containers and virtual machines?

↑ Back to top

What is a Docker image and how does it relate to a container?

↑ Back to top

What is the Docker architecture and its main components?

↑ Back to top

What are the advantages and disadvantages of using Docker?

↑ Back to top

Docker Images

What are Docker image layers and how do they work?

↑ Back to top

What are Docker image tags and how do you use them?

↑ Back to top

What is the latest tag and why should you avoid using it in production?

↑ Back to top

How do you reduce Docker image size?

↑ Back to top

What is the difference between alpine, slim, and full base images?

↑ Back to top

How do you scan Docker images for vulnerabilities?

↑ Back to top

Dockerfile

What is a Dockerfile and what is its purpose?

↑ Back to top

What is the difference between RUN, CMD, and ENTRYPOINT?

↑ Back to top

What is the difference between ADD and COPY instructions?

↑ Back to top

How do you use ARG and ENV instructions and what is the difference?

↑ Back to top

What is a multi-stage build and why would you use it?

↑ Back to top

What is the USER instruction and why is it important for security?

↑ Back to top

What is the HEALTHCHECK instruction and how do you use it?

↑ Back to top

What is the .dockerignore file and why is it important?

↑ Back to top

What are the best practices for writing efficient Dockerfiles?

↑ Back to top

How do you optimize layer caching in Dockerfiles?

↑ Back to top

Docker Containers

What is a Docker container and how does it differ from an image?

↑ Back to top

How do you create, start, stop, and remove containers?

↑ Back to top

How do you run a container in detached mode vs interactive mode?

↑ Back to top

What is the difference between docker exec and docker attach?

↑ Back to top

How do you view container logs?

↑ Back to top

What are container resource limits and how do you set them?

↑ Back to top

How do you copy files between host and container?

↑ Back to top

Docker Networking

What are the default Docker network drivers?

↑ Back to top

What is the difference between bridge, host, and none network modes?

↑ Back to top

How do containers communicate with each other?

↑ Back to top

What is Docker DNS and how does container name resolution work?

↑ Back to top

How do you expose container ports to the host?

↑ Back to top

What is the difference between -p and -P flags?

↑ Back to top

Docker Volumes and Storage

What are Docker volumes and why are they important?

↑ Back to top

What is the difference between volumes, bind mounts, and tmpfs mounts?

↑ Back to top

How do you create and manage Docker volumes?

↑ Back to top

How do you share data between containers?

↑ Back to top

Where are Docker volumes stored on the host?

↑ Back to top

How do you backup and restore Docker volumes?

↑ Back to top

Docker Compose

What is Docker Compose and what problems does it solve?

↑ Back to top

What is the structure of a docker-compose.yml file?

↑ Back to top

How do you define services in Docker Compose?

↑ Back to top

How do you manage dependencies between services?

↑ Back to top

How do you use environment variables in Docker Compose?

↑ Back to top

What is the difference between docker-compose down and docker-compose stop?

↑ Back to top

How do you override Compose files for different environments?

↑ Back to top

Docker Security

What are the security concerns when using Docker?

↑ Back to top

How do you run containers as non-root users?

↑ Back to top

What are Docker security best practices?

↑ Back to top

How do you manage secrets in Docker?

↑ Back to top

What is the difference between Docker secrets and environment variables?

↑ Back to top

What are the risks of running privileged containers?

↑ Back to top

Docker in Production

What are the best practices for running Docker in production?

↑ Back to top

How do you implement health checks for production containers?

↑ Back to top

What is container orchestration and why is it needed?

↑ Back to top

What is the difference between Docker Swarm and Kubernetes?

↑ Back to top

How do you handle container updates and rollbacks?

↑ Back to top

How do you implement zero-downtime deployments with Docker?

↑ Back to top

Performance and Troubleshooting

How do you optimize Docker container performance?

↑ Back to top

What are the best practices for reducing image size?

↑ Back to top

What is BuildKit and how does it improve builds?

↑ Back to top

How do you troubleshoot a container that won't start?

↑ Back to top

How do you clean up Docker resources (images, containers, volumes)?

↑ Back to top

What is the docker system prune command?

↑ Back to top

Docker and CI/CD

How do you integrate Docker with CI/CD pipelines?

↑ Back to top

What is Docker-in-Docker (DinD) and when would you use it?

↑ Back to top

How do you cache Docker layers in CI/CD?

↑ Back to top

What is the best practice for tagging images in CI/CD?

↑ Back to top