DEV Community

Ibrahim S
Ibrahim S

Posted on

2 1 1 1

๐——๐—ผ๐—ฐ๐—ธ๐—ฒ๐—ฟ ๐—–๐—ผ๐—บ๐—บ๐—ฎ๐—ป๐—ฑ๐˜€

  1. ๐๐จ๐œ๐ค๐ž๐ซ ๐›๐ฎ๐ข๐ฅ๐ -๐ญ ๐ฆ๐ฒ-๐š๐ฉ๐ฉ . - Build a container image
  2. ๐๐จ๐œ๐ค๐ž๐ซ ๐ซ๐ฎ๐ง -๐ฉ ๐Ÿ–๐ŸŽ๐Ÿ–๐ŸŽ:๐Ÿ–๐ŸŽ ๐ฆ๐ฒ-๐š๐ฉ๐ฉ - Run a container
  3. ๐๐จ๐œ๐ค๐ž๐ซ ๐ฉ๐ฌ - List running containers
  4. ๐๐จ๐œ๐ค๐ž๐ซ ๐ฅ๐จ๐ ๐ฌ {๐œ๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ_๐ข๐} - View container logs
  5. ๐๐จ๐œ๐ค๐ž๐ซ ๐ž๐ฑ๐ž๐œ -๐ข๐ญ {๐œ๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ_๐ข๐} /๐›๐ข๐ง/๐›๐š๐ฌ๐ก - Access container shell
  6. ๐๐จ๐œ๐ค๐ž๐ซ ๐ฉ๐ฎ๐ฌ๐ก ๐ข๐ฆ๐š๐ ๐ž:๐ญ๐š๐  - Upload image to registry
  7. ๐๐จ๐œ๐ค๐ž๐ซ ๐ฉ๐ฎ๐ฅ๐ฅ ๐ข๐ฆ๐š๐ ๐ž:๐ญ๐š๐  - Download image from registry
  8. ๐๐จ๐œ๐ค๐ž๐ซ ๐ฌ๐ฒ๐ฌ๐ญ๐ž๐ฆ ๐ฉ๐ซ๐ฎ๐ง๐ž - Cleanup unused containers, images, and volumes
  9. ๐๐จ๐œ๐ค๐ž๐ซ ๐ฏ๐จ๐ฅ๐ฎ๐ฆ๐ž ๐œ๐ซ๐ž๐š๐ญ๐ž ๐ฆ๐ฒ-๐ฏ๐จ๐ฅ๐ฎ๐ฆ๐ž - Create a persistent volume
  10. ๐๐จ๐œ๐ค๐ž๐ซ ๐ง๐ž๐ญ๐ฐ๐จ๐ซ๐ค ๐œ๐ซ๐ž๐š๐ญ๐ž ๐ฆ๐ฒ-๐ง๐ž๐ญ๐ฐ๐จ๐ซ๐ค - Create a custom network
  11. ๐๐จ๐œ๐ค๐ž๐ซ-๐œ๐จ๐ฆ๐ฉ๐จ๐ฌ๐ž ๐ฎ๐ฉ -๐ - Start a multi-container app
  12. ๐๐จ๐œ๐ค๐ž๐ซ-๐œ๐จ๐ฆ๐ฉ๐จ๐ฌ๐ž ๐๐จ๐ฐ๐ง - Stop a multi-container app
  13. ๐๐จ๐œ๐ค๐ž๐ซ ๐ข๐ง๐ฌ๐ฉ๐ž๐œ๐ญ {๐œ๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ_๐ข๐} - Inspect container details
  14. ๐๐จ๐œ๐ค๐ž๐ซ ๐ข๐ฆ๐š๐ ๐ž ๐ก๐ข๐ฌ๐ญ๐จ๐ซ๐ฒ ๐ฆ๐ฒ-๐š๐ฉ๐ฉ - View image build history
  15. ๐๐จ๐œ๐ค๐ž๐ซ ๐ฌ๐ญ๐š๐ญ๐ฌ - Monitor container resource usage
  16. ๐๐จ๐œ๐ค๐ž๐ซ ๐ฎ๐ฉ๐๐š๐ญ๐ž --๐ซ๐ž๐ฌ๐ญ๐š๐ซ๐ญ=๐š๐ฅ๐ฐ๐š๐ฒ๐ฌ {๐œ๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ_๐ข๐} - Set container to auto-restart
  17. ๐๐จ๐œ๐ค๐ž๐ซ ๐ซ๐ฎ๐ง --๐ซ๐ฆ -๐ข๐ญ ๐ฆ๐ฒ-๐š๐ฉ๐ฉ /๐›๐ข๐ง/๐›๐š๐ฌ๐ก - Run a container and remove it on exit
  18. ๐๐จ๐œ๐ค๐ž๐ซ ๐ซ๐ฎ๐ง --๐ง๐š๐ฆ๐ž ๐ฆ๐ฒ-๐๐› -๐ž ๐๐Ž๐’๐“๐†๐‘๐„๐’_๐๐€๐’๐’๐–๐Ž๐‘๐ƒ=๐ฆ๐ฒ๐ฌ๐ž๐œ๐ซ๐ž๐ญ๐ฉ๐š๐ฌ๐ฌ๐ฐ๐จ๐ซ๐ -๐ ๐ฉ๐จ๐ฌ๐ญ๐ ๐ซ๐ž๐ฌ - Run a container with environment variables
  19. ๐๐จ๐œ๐ค๐ž๐ซ ๐ง๐ž๐ญ๐ฐ๐จ๐ซ๐ค ๐œ๐จ๐ง๐ง๐ž๐œ๐ญ ๐ฆ๐ฒ-๐ง๐ž๐ญ๐ฐ๐จ๐ซ๐ค {๐œ๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ_๐ข๐} - Connect a container to a custom network
  20. ๐๐จ๐œ๐ค๐ž๐ซ ๐ฏ๐จ๐ฅ๐ฎ๐ฆ๐ž ๐ฅ๐ฌ - List all persistent volumes
  21. ๐๐จ๐œ๐ค๐ž๐ซ ๐ข๐ฆ๐š๐ ๐ž ๐ฉ๐ซ๐ฎ๐ง๐ž -๐š - Remove all unused container images

AWS Q Developer image

Your AI Code Assistant

Ask anything about your entire project, code and get answers and even architecture diagrams. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Start free in your IDE

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

๐Ÿ‘‹ Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someoneโ€™s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay