DEV Community

Cover image for 🐳 Docker: comandos básicos
Leticia Campos
Leticia Campos

Posted on

3 2

🐳 Docker: comandos básicos

Se você é iniciante nesse mundo de containers assim como eu, este guia de será muito útil para dar esses primeiros passos e relembrar alguns comandos.

docker images
Enter fullscreen mode Exit fullscreen mode
  • Lista todas as imagens existentes na máquina, exceto as intermediárias.
docker images -a
Enter fullscreen mode Exit fullscreen mode
  • Lista todas as imagens existentes na máquina, inclusive as intermediárias.
docker rmi <IMAGE-ID>
Enter fullscreen mode Exit fullscreen mode
  • Apaga todos os containers dependentes da imagem e só depois remove a imagem.
docker rmi -f <IMAGE-ID>
Enter fullscreen mode Exit fullscreen mode
  • Usamos o force(-f) para forçar os containers dependentes da imagem ser apagado e depois remover a imagem, mesmo que ele esteja em execução.

Guias:

Top comments (1)

Collapse
 
asilva-dev profile image
Amanda Silva

Parabéns Leticia, ótima didádica!!!!

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay