# Fundamentos do Docker (DevOps) > Containers, images, Dockerfile, docker-compose, volumes, networks, registries (ECR/GCR/ACR), solução de problemas de containers - 24 perguntas de entrevista - Junior - [Perguntas de entrevista: DevOps](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista.md) ## 1. Qual é a principal diferença entre um container Docker e uma máquina virtual? **Resposta** Um container compartilha o kernel do sistema operacional host e isola apenas os processos, enquanto uma máquina virtual inclui um OS completo com seu próprio kernel. Portanto, os containers são muito mais leves (alguns MB contra vários GB) e iniciam em segundos em vez de minutos. Essa diferença arquitetural torna os containers ideais para deploys rápidos e escalabilidade horizontal. ## 2. O que é uma image Docker? **Resposta** Uma image Docker é um template imutável e somente leitura que contém tudo o necessário para executar uma aplicação: código, runtime, bibliotecas, variáveis de ambiente e arquivos de configuração. As images são compostas por camadas empilhadas, cada camada representando uma modificação do sistema de arquivos. Essa arquitetura em camadas permite reutilizar e compartilhar images de forma eficiente entre containers. ## 3. Qual instrução do Dockerfile define a image base? **Resposta** A instrução FROM define a image base a partir da qual construir. Ela deve ser a primeira instrução (após os ARG opcionais) em um Dockerfile. Por exemplo, FROM node:18-alpine usa a image do Node.js 18 baseada no Alpine Linux. Escolher uma image base apropriada (tamanho, segurança, compatibilidade) é crucial para otimizar os builds e reduzir as vulnerabilidades. ## Mais 21 perguntas disponiveis - Qual é a diferença entre CMD e ENTRYPOINT em um Dockerfile? - Qual instrução do Dockerfile copia arquivos do host para a image? Cadastre-se gratis: https://sharpskill.dev/pt/login ## Outros temas de entrevista DevOps - [Controle de versão & Git](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/version-control-git.md): 20 perguntas, Junior - [Fundamentos do Linux](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/linux-fundamentals.md): 22 perguntas, Junior - [Shell Scripting & Bash](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/shell-scripting-bash.md): 20 perguntas, Mid-Level - [Fundamentos de Redes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/networking-basics.md): 22 perguntas, Junior - [Fundamentos de CI/CD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/ci-cd-fundamentals.md): 18 perguntas, Junior - [GitHub Actions](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/github-actions.md): 22 perguntas, Mid-Level - [GitLab CI/CD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/gitlab-ci.md): 22 perguntas, Mid-Level - [Jenkins](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/jenkins.md): 22 perguntas, Mid-Level - [Fundamentos do Kubernetes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/kubernetes-basics.md): 26 perguntas, Mid-Level - [Networking de Kubernetes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/kubernetes-networking.md): 24 perguntas, Mid-Level - [Kubernetes Avançado](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/kubernetes-advanced.md): 24 perguntas, Mid-Level - [Ingress & API Gateway](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/ingress-api-gateway.md): 20 perguntas, Mid-Level - [Fundamentos do Terraform](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/terraform-basics.md): 22 perguntas, Mid-Level - [Terraform Avançado](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/terraform-advanced.md): 22 perguntas, Mid-Level - [Ansible & Configuration Management](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/ansible-configuration.md): 20 perguntas, Mid-Level - [Fundamentos do AWS](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/aws-essentials.md): 26 perguntas, Mid-Level - [Fundamentos do Azure](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/azure-fundamentals.md): 22 perguntas, Mid-Level - [Fundamentos do GCP](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/gcp-fundamentals.md): 22 perguntas, Mid-Level - [Monitoramento e Prometheus](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/monitoring-prometheus.md): 22 perguntas, Mid-Level - [Logging & ELK Stack](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/logging-elk.md): 20 perguntas, Mid-Level - [Alerting e Incident Response](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/alerting-incident-response.md): 20 perguntas, Mid-Level - [Cloud Identity & Secrets](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/cloud-identity-secrets.md): 22 perguntas, Mid-Level - [Segurança de Pipelines CI/CD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/cicd-pipeline-security.md): 20 perguntas, Mid-Level - [Helm & Kubernetes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/helm-kubernetes.md): 20 perguntas, Mid-Level - [Segurança Runtime e Cluster](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/runtime-cluster-security.md): 24 perguntas, Senior - [Container Supply Chain Security](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/container-supply-chain.md): 22 perguntas, Senior - [Service Mesh & Istio](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/service-mesh-istio.md): 24 perguntas, Senior - [GitOps & ArgoCD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/gitops-argocd.md): 22 perguntas, Senior - [Progressive Delivery](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/progressive-delivery.md): 20 perguntas, Senior - [Observabilidade Distribuída](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/observability-distributed.md): 22 perguntas, Senior - [Disaster Recovery & Backup](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/disaster-recovery.md): 20 perguntas, Senior - [Otimização de Desempenho](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/performance-optimization.md): 22 perguntas, Senior - [Otimização de Custos na Nuvem](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/infrastructure-cost.md): 20 perguntas, Senior - [Princípios de SRE](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/sre-principles.md): 24 perguntas, Senior - [Chaos Engineering](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/chaos-engineering.md): 20 perguntas, Senior - [Platform Engineering](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/platform-engineering.md): 22 perguntas, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/docker-fundamentals