Keyboard Shortcuts N Next post
P Previous post
S Save / unsave
R Read aloud
T Toggle theme
/ Focus search
Esc Close panels
🔥
Ready to read...
Docker Docker & Containers: From Zero to Production Docker Compose Module 6 — Docker Compose

Docker Compose Commands — Up, Down, Logs, Exec, and More

Reviewed & accurate
AI Summary

What You'll Learn

Beginner

  • All essential docker compose commands
  • How to manage services individually
Terminalbash
docker compose up -d          # Start
docker compose down          # Stop + remove
docker compose logs -f        # Follow logs
docker compose exec web bash # Shell in service
docker compose ps            # List services
docker compose restart web   # Restart one

Key Takeaways

  • up -d starts; down stops.
  • logs -f <service> follows logs.
  • exec <service> bash opens shell.
  • down -v removes volumes — caution!
Previously: Lesson 34 wrote a compose file.
Today: You learned: Every Docker Compose command you'll use.
Next: Lesson 36 covers multi-service apps.
Test Your Knowledge
How did you find this?

Comments

Join the discussion! Sign in with your Google or Blogger account, or comment as Anonymous - no account needed. For quick questions, also reach me on Telegram @cytestch.

Comments