Project Docs
  • 👋Welcome to End2End Data Science Project Documentation
  • About us
    • 💡Who we are
  • Project Guides
    • 📪Project Pipeline Overview
    • 📎Understanding Projects
  • Fundamentals
    • 🛠️Getting started
      • 💻Step 1: Github
        • Working with Git & Github
          • Setting up your repository & project
          • Git Branching
          • Push & Pull
          • Pull Request
        • Resources
        • Exercise
      • 💻Step 2: Python Setup
      • 💻Step 3: Conda Environment
        • Working with Conda Environment
        • Resources
      • 💻Step 4: MySQL, Postgres & Oracle DB
        • Quick review on SQL
        • Exercises (Under development)
      • 💻Step 5: Project Setup
      • 💻Step 6: AWS & GCP
        • Automation
      • 📉Step 7: Final Presentation
      • 🚀Step 8: Docker
        • Creating Docker Image
        • Useful Docker commands
  • 📔Interesting articles
    • Data Engineering
    • Data Science
    • ML & MLOps
  • 📔Resources
Powered by GitBook
On this page
  1. Fundamentals
  2. Getting started
  3. Step 8: Docker

Useful Docker commands

Here are the list of widely used docker commands - consider this to be a cheatsheet!

Usage
Command

Start a container

docker run <image-name>

Start an interactive container

docker run -it <image-name>

Start a detached container

docker run -d <image-name>

Start container with a name

docker run --name <container-name> <image-name>

List running containers

docker ps

Filter running container on name

docker ps -f "name=<container-name>"

Stop a container

docker stop <container-id>

See existing logs for container

docker logs <container-id>

See live logs for container

docker logs -f <container-id>

Exit live log view of container

CTRL+C

Remove stopped container

docker container rm <container-id>

PreviousCreating Docker ImageNextInteresting articles

Last updated 1 year ago

🛠️
🚀