DEV Community

Ibrahim S
Ibrahim S

Posted on

1 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

Implement features, document your code, or refactor your projects.
Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤ī¸ or a friendly comment on this post if you found it helpful!

Okay