[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"categories-en":3,"cheatsheet:\u002Fcheatsheets\u002Fdocker-production-commands":37},[4,11,17,24,30],{"id":5,"slug":6,"name":7,"colorHex":8,"iconName":9,"postCount":10},"0e2c1225-f78a-4c20-8c93-998ab9dc93b9","frontend","Frontend","#40484f",null,25,{"id":12,"slug":13,"name":14,"colorHex":15,"iconName":9,"postCount":16},"bc8df70e-b7fb-4d89-a80c-fd458d36d58c","code-development","Code & Development","#8b5cf6",23,{"id":18,"slug":19,"name":20,"colorHex":21,"iconName":22,"postCount":23},"550e8400-e29b-41d4-a716-446655440001","inteligencia-artificial","Artificial Intelligence","#6366f1","brain",14,{"id":25,"slug":26,"name":27,"colorHex":28,"iconName":9,"postCount":29},"ea63b69c-2eb4-4100-81f3-70ce52d33743","tech-news","Tech News","#e50606",4,{"id":31,"slug":32,"name":33,"colorHex":34,"iconName":35,"postCount":36},"550e8400-e29b-41d4-a716-446655440017","how-to-guides","How-To & Guides","#be123c","book-open",2,{"id":38,"slug":39,"title":40,"description":41,"category":42,"level":43,"codeLanguage":44,"views":29,"updatedAt":45,"tags":46,"sections":59,"snippetCount":1244},"f454e4ee-5d88-4fda-b61e-f0174f31cbac","docker-production-commands","Docker: Production Commands","Forget manual configuration. Copy and paste commands to spin up containers, clean volumes and deploy in record time.","devops","advanced","bash","2026-04-08T01:58:58.663281+00:00",[47,42,48,49,50,51,52,53,54,55,56,57,58],"docker","containers","images","docker-compose","linux","cli","troubleshooting","networking","volumes","monitoramento","build","ci-cd",[60,113,238,351,434,505,576,1085,1168],{"id":61,"title":62,"description":63,"snippets":64},"8ead00d0-8b77-4eec-9df0-10e7dbd35772","ℹ️ Basic Information","Use this section to check the overall Docker status, installed versions, or get detailed information about the Docker system and resource usage.",[65,71,77,83,89,95,101,107],{"id":66,"title":67,"description":68,"code":69,"language":44,"filename":9,"whenToUse":9,"highlighted":70},"91c14b8c-75cf-4964-8424-4fa8bfb19cbb","Check Docker Version","Displays the Docker client version installed on your system, useful for checking compatibility and the environment.","docker --version","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> --version\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":72,"title":73,"description":74,"code":75,"language":44,"filename":9,"whenToUse":9,"highlighted":76},"65bf2aa8-feac-44bb-a5a6-5acb94a7e900","Detailed Docker System Information","Provides a detailed summary of Docker system information, including the number of containers (running, paused, stopped), images, volumes, networks, and daemon configurations.","docker info","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> info\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":78,"title":79,"description":80,"code":81,"language":44,"filename":9,"whenToUse":9,"highlighted":82},"1b16bdeb-269a-46c5-9a14-25361d74f7ed","Detailed System Information (Alternative)","Similar to `docker info`, this command can provide a more specific or formatted view of Docker system information, depending on the version and configuration.","docker system info","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> system info\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":84,"title":85,"description":86,"code":87,"language":44,"filename":9,"whenToUse":9,"highlighted":88},"78b93670-ff57-456a-bbb0-72e0afd0ee1c","Docker Disk Space Usage","Shows Docker disk space usage, detailing consumption by images, containers, volumes, and build cache, helping to identify where space is being used.","docker system df","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> system df\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":90,"title":91,"description":92,"code":93,"language":44,"filename":9,"whenToUse":9,"highlighted":94},"89ad4f24-7130-4cc4-9355-3a2726bf061b","Docker Client and Server Version","Displays the versions of the Docker client (CLI) and server (daemon), allowing verification of communication and compatibility between them.","docker version","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> version\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":96,"title":97,"description":98,"code":99,"language":44,"filename":9,"whenToUse":9,"highlighted":100},"d4c47735-7710-4084-a348-699535680fc4","Real-time Docker System Events","Streams real-time events from the Docker daemon, such as container, image, and volume creation, start, stop, and destruction, useful for continuous monitoring.","docker system events","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> system events\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":102,"title":103,"description":104,"code":105,"language":44,"filename":9,"whenToUse":9,"highlighted":106},"8fb85728-f393-42f0-8567-fababc500594","System Events in the Last Hour","Displays Docker daemon events that occurred in the last hour, useful for reviewing recent system activities and debugging recently emerged issues.","docker system events --since 1h","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> system events --since 1h\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":108,"title":109,"description":110,"code":111,"language":44,"filename":9,"whenToUse":9,"highlighted":112},"36c85b78-781f-4874-8393-2c7c29bedfc4","Clean Unused Data Older Than 24h","Removes unused Docker data older than 24 hours, such as stopped containers, untagged images, and build cache, helping to free up space selectively.","docker system prune --filter until=24h","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> system prune --filter until=24h\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":114,"title":115,"description":116,"snippets":117},"41a36afd-5197-4260-aa6c-3996fb58bc3c","📦 Containers","Use this section for managing the Docker container lifecycle, from execution and configuration to stopping, removal, and debugging. Essential for deploying and maintaining applications.",[118,124,130,136,142,148,154,160,166,172,178,184,190,196,202,208,214,220,226,232],{"id":119,"title":120,"description":121,"code":122,"language":44,"filename":9,"whenToUse":9,"highlighted":123},"16235fa8-22f3-47b8-9b93-3901fc35b69f","List Running Containers","Lists all Docker containers that are currently running, showing their IDs, names, images, commands, mapped ports, and status.","docker ps","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> ps\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":125,"title":126,"description":127,"code":128,"language":44,"filename":9,"whenToUse":9,"highlighted":129},"ddfe9fab-01f9-4ae0-9c8f-f93a190fbb8d","List All Containers (Including Stopped)","Lists all Docker containers, including those that are stopped or have exited (`-a` for \"all\").","docker ps -a","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> ps -a\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":131,"title":132,"description":133,"code":134,"language":44,"filename":9,"whenToUse":9,"highlighted":135},"f704f218-70e5-4d5b-9a94-724fe63da458","List Only Container IDs","Lists only the IDs of running Docker containers, useful for chaining commands or automated scripts.","docker ps -q","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> ps -q\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":137,"title":138,"description":139,"code":140,"language":44,"filename":9,"whenToUse":9,"highlighted":141},"93ce5565-416a-4ce1-8187-4300f3f8348c","List Containers with Custom Format","Lists running containers with a custom table format, displaying only names, status, and mapped ports, allowing for a cleaner and more focused view.","docker ps --format \"table {{.Names}}\\t{{.Status}}\\t{{.Ports}}\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> ps --format \"table {{.Names}}\\t{{.Status}}\\t{{.Ports}}\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":143,"title":144,"description":145,"code":146,"language":44,"filename":9,"whenToUse":9,"highlighted":147},"c204624b-c5f3-4f03-90b5-1b7e4f9f8cdd","Run Container Mapping Port","Runs a new container from the `blueprint-backend` image and maps host port `3001` to container port `3001` (`-p` for \"publish\"), allowing external access to the service.","docker run -p 3001:3001 blueprint-backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run -p 3001:3001 blueprint-backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":149,"title":150,"description":151,"code":152,"language":44,"filename":9,"whenToUse":9,"highlighted":153},"86708865-dedc-462a-8261-2e34382ffe88","Run Container in Background (Detached)","Runs a new container in `detached` mode (background, `-d`), assigns the name `backend` (`--name`), and maps host port `3001` to container port `3001`.","docker run -d --name backend -p 3001:3001 blueprint-backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run -d --name backend -p 3001:3001 blueprint-backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":155,"title":156,"description":157,"code":158,"language":44,"filename":9,"whenToUse":9,"highlighted":159},"0ada82f8-fe74-421c-9ccf-960d8d022c35","Run Interactive Container and Remove on Exit","Runs an `alpine` image container in interactive mode (`-i`) with a pseudo-TTY (`-t`), executing the `sh` command. The container will be automatically removed (`--rm`) upon termination.","docker run -it --rm alpine sh","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run -it --rm alpine sh\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":161,"title":162,"description":163,"code":164,"language":44,"filename":9,"whenToUse":9,"highlighted":165},"d13e00db-b417-4cc2-b59f-1afd87f27f84","Run Container with Environment Variables","Runs an `app` image container and sets the `NODE_ENV` environment variable to `production` (`-e` for \"env\"), useful for configuring application behavior within the container.","docker run -e NODE_ENV=production app","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run -e NODE_ENV=production app\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":167,"title":168,"description":169,"code":170,"language":44,"filename":9,"whenToUse":9,"highlighted":171},"bf5d58be-a00c-4c1c-89a6-1d4df9827a28","Run Container with Volume and Specific Command","Runs a `node` image container, mounting the host's current working directory (`$(pwd)`) as `\u002Fapp` inside the container (`-v` for \"volume\") and setting `\u002Fapp` as the working directory (`-w`). Then, executes `npm install`.","docker run -v $(pwd):\u002Fapp -w \u002Fapp node npm install","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run -v $(pwd):\u002Fapp -w \u002Fapp node npm install\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":173,"title":174,"description":175,"code":176,"language":44,"filename":9,"whenToUse":9,"highlighted":177},"b6a47585-7d47-4d50-b880-e5bd2bc2bea5","Run Container with Automatic Restart Policy","Runs a container from the `app` image and configures an automatic restart policy (`--restart unless-stopped`), ensuring the container will restart automatically unless explicitly stopped.","docker run --restart unless-stopped app","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run --restart unless-stopped app\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":179,"title":180,"description":181,"code":182,"language":44,"filename":9,"whenToUse":9,"highlighted":183},"61e9ca9e-133e-40eb-b888-cafd85a7561c","Run Container Limiting Memory","Runs a container from the `app` image and limits the amount of RAM it can use to 256 megabytes (`--memory`), useful for resource control.","docker run --memory=\"256m\" app","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run --memory=\"256m\" app\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":185,"title":186,"description":187,"code":188,"language":44,"filename":9,"whenToUse":9,"highlighted":189},"4e299290-877c-4e83-83e0-dc564f62b70f","Run Container Limiting CPU","Runs a container from the `app` image and limits CPU usage to 0.5 (equivalent to 50% of one CPU core) (`--cpus`), useful for resource control.","docker run --cpus=\"0.5\" app","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run --cpus=\"0.5\" app\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":191,"title":192,"description":193,"code":194,"language":44,"filename":9,"whenToUse":9,"highlighted":195},"087b2166-9d8a-4106-919a-d694916d6969","Stop a Specific Container","Sends a SIGTERM signal to the specified container, requesting its graceful shutdown. After a timeout, if the container does not stop, a SIGKILL is sent.","docker stop container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stop container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":197,"title":198,"description":199,"code":200,"language":44,"filename":9,"whenToUse":9,"highlighted":201},"3bbe30d6-5d62-4cba-bdf4-4870f6501b95","Stop All Running Containers","Stops all running Docker containers, using the output of `docker ps -q` (which lists only the IDs of running containers) as an argument for `docker stop`.","docker stop $(docker ps -q)","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stop $(docker ps -q)\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":203,"title":204,"description":205,"code":206,"language":44,"filename":9,"whenToUse":9,"highlighted":207},"8fa02805-aad2-45fa-960e-1ea470acb56c","Remove a Specific Container","Removes a specific Docker container. The container must be stopped before being removed, unless the `-f` (force) flag is used.","docker rm container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> rm container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":209,"title":210,"description":211,"code":212,"language":44,"filename":9,"whenToUse":9,"highlighted":213},"603edb9f-7a18-49ab-9c70-f7c8d847af44","Remove All Containers (Running and Stopped)","Removes all Docker containers, both running and stopped, using the output of `docker ps -aq` (which lists all IDs) as an argument for `docker rm`.","docker rm $(docker ps -aq)","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> rm $(docker ps -aq)\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":215,"title":216,"description":217,"code":218,"language":44,"filename":9,"whenToUse":9,"highlighted":219},"75ea673f-aea6-42b4-a1db-c4ba378f884b","Restart a Container","Restarts a running Docker container, stopping it and starting it again.","docker restart container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> restart container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":221,"title":222,"description":223,"code":224,"language":44,"filename":9,"whenToUse":9,"highlighted":225},"18ee1aa2-9b89-47d9-8627-b6e97e52c71b","Pause a Container","Pauses all processes within a running container, temporarily suspending it without terminating it, freeing up CPU resources but retaining memory.","docker pause container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> pause container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":227,"title":228,"description":229,"code":230,"language":44,"filename":9,"whenToUse":9,"highlighted":231},"985e9569-a1c8-4ee4-8cee-4403264859c4","Unpause a Container","Unpauses a container that was previously paused, allowing its processes to resume execution.","docker unpause container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> unpause container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":233,"title":234,"description":235,"code":236,"language":44,"filename":9,"whenToUse":9,"highlighted":237},"1e8eeabe-f693-46d7-8c88-7a196c9a3b45","Force Stop a Container (Kill)","Forces the immediate stop of a Docker container by sending a SIGKILL signal, without waiting for it to shut down gracefully. Use with caution, as it may result in data loss.","docker kill container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> kill container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":239,"title":240,"description":241,"snippets":242},"9fb0089a-e1f5-4518-ad65-4304776da0f5","🖼️ Images","Use this section for creating, managing, listing, or cleaning Docker images. Essential for developing and distributing Dockerized applications.",[243,249,255,261,267,273,279,285,291,297,303,309,315,321,327,333,339,345],{"id":244,"title":245,"description":246,"code":247,"language":44,"filename":9,"whenToUse":9,"highlighted":248},"dd9be2b0-43a1-41fb-b3b5-17fcba99b46c","List Local Docker Images","Lists all locally stored Docker images, showing their repositories, tags, IDs, and sizes.","docker images","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> images\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":250,"title":251,"description":252,"code":253,"language":44,"filename":9,"whenToUse":9,"highlighted":254},"b1a2b727-6af9-4617-b130-a4d6b4b7b0ff","List All Images (Including Intermediate)","Lists all Docker images, including intermediate layers (`-a` for \"all\"), which are typically hidden and can consume space.","docker images -a","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> images -a\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":256,"title":257,"description":258,"code":259,"language":44,"filename":9,"whenToUse":9,"highlighted":260},"251e80a6-77db-48a4-944d-74a1fc8c236a","List Images with Custom Format","Lists Docker images with a custom table format, displaying repository, tag, and size, for a more organized and focused view.","docker images --format \"table {{.Repository}}\\t{{.Tag}}\\t{{.Size}}\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> images --format \"table {{.Repository}}\\t{{.Tag}}\\t{{.Size}}\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":262,"title":263,"description":264,"code":265,"language":44,"filename":9,"whenToUse":9,"highlighted":266},"01644687-50eb-4f36-8a30-9fdb26ff860a","Basic Docker Image Build","Builds a Docker image from the `Dockerfile` located in the `.\u002Fbackend` directory and tags it with the name `blueprint-backend` (`-t` for \"tag\").","docker build -t blueprint-backend .\u002Fbackend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build -t blueprint-backend .\u002Fbackend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":268,"title":269,"description":270,"code":271,"language":44,"filename":9,"whenToUse":9,"highlighted":272},"c2a0c0b5-aab5-4a4e-b607-3e76ffd7f86c","Frontend Image Build","Builds a Docker image from the `Dockerfile` located in the `.\u002Ffrontend` directory and tags it with the name `blueprint-frontend`.","docker build -t blueprint-frontend .\u002Ffrontend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build -t blueprint-frontend .\u002Ffrontend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":274,"title":275,"description":276,"code":277,"language":44,"filename":9,"whenToUse":9,"highlighted":278},"ddd79996-979c-48bd-9534-6b439d1d6bc7","Build Image Without Cache","Builds a Docker image from the `Dockerfile` in the current directory, without using layer cache (`--no-cache`), ensuring all steps are executed from scratch, and tags it as `app:latest`.","docker build --no-cache -t app:latest .","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build --no-cache -t app:latest .\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":280,"title":281,"description":282,"code":283,"language":44,"filename":9,"whenToUse":9,"highlighted":284},"99568929-41a9-48eb-96f0-e10bac48e0dd","Multi-stage Image Build with Specific Target","Builds a Docker image from the `Dockerfile` in the current directory, using a specific build stage (`--target production`) defined in the multi-stage Dockerfile, and tags it as `app:prod`.","docker build --target production -t app:prod .","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build --target production -t app:prod .\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":286,"title":287,"description":288,"code":289,"language":44,"filename":9,"whenToUse":9,"highlighted":290},"0bb477d0-b158-4a11-8a30-5f559daf34a3","Build Image with Build Arguments","Builds a Docker image from the `Dockerfile` in the current directory, passing a build argument (`--build-arg NODE_ENV=production`) that can be used within the Dockerfile during the build process, and tags it as `app`.","docker build --build-arg NODE_ENV=production -t app .","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build --build-arg NODE_ENV=production -t app .\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":292,"title":293,"description":294,"code":295,"language":44,"filename":9,"whenToUse":9,"highlighted":296},"17f44704-cbed-4c29-82d3-e393f96b26cb","Build Image with Detailed Progress","Builds a Docker image with detailed, plain progress output (`--progress=plain`), useful for debugging in CI\u002FCD environments or when standard output is not a TTY.","docker build --progress=plain -t app .","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build --progress=plain -t app .\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":298,"title":299,"description":300,"code":301,"language":44,"filename":9,"whenToUse":9,"highlighted":302},"9b37f374-acb4-4550-a09b-f5bacb4749b2","Image Build with Layer Squashing","Builds a Docker image and \"squashes\" the resulting layers into a single layer after the base image, reducing the number of layers and, potentially, the final image size (`--squash`).","docker build --squash -t app .","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build --squash -t app .\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":304,"title":305,"description":306,"code":307,"language":44,"filename":9,"whenToUse":9,"highlighted":308},"5d7edd60-acf4-4937-8eaf-0c564cfc9411","Image Build with Labels (Metadata)","Builds a Docker image and adds a `version=1.0` label (`--label`) to the image, useful for metadata, organization, and filtering.","docker build --label version=1.0 -t app .","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build --label version=1.0 -t app .\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":310,"title":311,"description":312,"code":313,"language":44,"filename":9,"whenToUse":9,"highlighted":314},"855d93b5-8365-453c-8860-903f5fcd1aea","Remove a Docker Image","Removes a specific Docker image from local storage. The image cannot be in use by any container to be removed.","docker rmi image_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> rmi image_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":316,"title":317,"description":318,"code":319,"language":44,"filename":9,"whenToUse":9,"highlighted":320},"686bcb36-f57c-47bd-ac78-b52ffec89ecb","Remove All Local Images","Removes all unused Docker images, using the output of `docker images -q` (which lists only image IDs) as an argument for `docker rmi`.","docker rmi $(docker images -q)","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> rmi $(docker images -q)\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":322,"title":323,"description":324,"code":325,"language":44,"filename":9,"whenToUse":9,"highlighted":326},"93e202db-0a0b-4500-a898-92140ea4a7d3","Remove Dangling Images","Removes Docker images that are not associated with any container and have no tags (dangling or orphaned images), freeing up disk space.","docker image prune","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> image prune\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":328,"title":329,"description":330,"code":331,"language":44,"filename":9,"whenToUse":9,"highlighted":332},"4112d087-f047-4c1d-aeea-a897c4436ed4","Remove All Unused Images (Including Intermediate Layers)","Removes all unused Docker images, including intermediate layers (`-a` for \"all\"), which are not referenced by any named image.","docker image prune -a","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> image prune -a\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":334,"title":335,"description":336,"code":337,"language":44,"filename":9,"whenToUse":9,"highlighted":338},"1827f834-19fc-4746-b35a-262ed433bce5","Rename\u002FTag an Image","Creates a new tag (`target:1.0`) for an existing image (`source:latest`), allowing the same image to be referenced with different names or specific versions.","docker tag source:latest target:1.0","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> tag source:latest target:1.0\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":340,"title":341,"description":342,"code":343,"language":44,"filename":9,"whenToUse":9,"highlighted":344},"30446ad6-a181-49ea-a2ac-f45740eccae5","Push Image to Remote Registry","Pushes a Docker image to a remote registry (`registry.com\u002Fapp:latest`), making it available to other users or systems.","docker push registry.com\u002Fapp:latest","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> push registry.com\u002Fapp:latest\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":346,"title":347,"description":348,"code":349,"language":44,"filename":9,"whenToUse":9,"highlighted":350},"66183e72-757d-4d8a-83da-26a02b85d140","Pull Image from Remote Registry","Downloads a Docker image from a remote registry (`registry.com\u002Fapp:latest`) to your system's local storage.","docker pull registry.com\u002Fapp:latest","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> pull registry.com\u002Fapp:latest\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":352,"title":353,"description":354,"snippets":355},"0f6b4338-6bc6-47fc-ab33-c4484b87260e","📊 Logs and Monitoring","Use this section for debugging, monitoring performance, or analyzing issues in Docker containers through logs and real-time statistics.",[356,362,368,374,380,386,392,398,404,410,416,422,428],{"id":357,"title":358,"description":359,"code":360,"language":44,"filename":9,"whenToUse":9,"highlighted":361},"15e9ea8e-8f9b-4670-b867-2e9ef670b3b8","View Container Logs","Displays the standard log output (stdout\u002Fstderr) of a specific Docker container, useful for debugging and monitoring.","docker logs container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> logs container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":363,"title":364,"description":365,"code":366,"language":44,"filename":9,"whenToUse":9,"highlighted":367},"4ba36684-fda0-4c65-b892-1c8ac5e5147a","Follow Container Logs","Displays container logs in real-time, following new entries (`-f` for \"follow\"), keeping the connection open and showing logs as they are generated.","docker logs -f container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> logs -f container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":369,"title":370,"description":371,"code":372,"language":44,"filename":9,"whenToUse":9,"highlighted":373},"c6b38d50-a083-451a-8bd5-d6e80f2e3475","View Last N Log Lines","Displays the last 50 log lines of a specific container (`--tail`), useful for a quick check of recent events without loading the entire history.","docker logs --tail 50 container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> logs --tail 50 container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":375,"title":376,"description":377,"code":378,"language":44,"filename":9,"whenToUse":9,"highlighted":379},"600f7221-c5d1-4c04-ab60-992c657d7095","View Logs From a Period","Displays container logs generated in the last 2 hours (`--since`), allowing logs to be filtered by time period to focus on recent events.","docker logs --since=\"2h\" container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> logs --since=\"2h\" container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":381,"title":382,"description":383,"code":384,"language":44,"filename":9,"whenToUse":9,"highlighted":385},"43a07109-1691-474c-a977-f6374efa882e","View Logs with Timestamps","Displays container logs, adding a timestamp to each log line (`--timestamps`), which is useful for chronological analysis and event correlation.","docker logs --timestamps container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> logs --timestamps container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":387,"title":388,"description":389,"code":390,"language":44,"filename":9,"whenToUse":9,"highlighted":391},"d20cc398-f5a1-43ee-b96e-89bbb74b74dc","Real-time Resource Statistics","Displays a real-time stream of resource usage statistics (CPU, memory, network, disk I\u002FO) for all running containers, useful for performance monitoring and bottleneck identification.","docker stats","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stats\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":393,"title":394,"description":395,"code":396,"language":44,"filename":9,"whenToUse":9,"highlighted":397},"19059686-66a3-4867-aedc-2b43cc7cc302","Specific Container Resource Statistics","Displays real-time resource usage statistics for a specific Docker container, allowing focus on the performance of a single service.","docker stats container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stats container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":399,"title":400,"description":401,"code":402,"language":44,"filename":9,"whenToUse":9,"highlighted":403},"bf194773-28b2-4b61-a734-45f42821c13f","Running Processes in Container","Displays processes running inside a specific Docker container, similar to the Linux `top` command, useful for debugging and checking which processes are active.","docker top container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> top container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":405,"title":406,"description":407,"code":408,"language":44,"filename":9,"whenToUse":9,"highlighted":409},"579f24d4-814c-4e2c-bc71-6ae4828aaa31","Static Resource Statistics","Displays a static snapshot of resource usage statistics for running containers, without the continuous real-time stream (`--no-stream`), useful for point-in-time captures.","docker stats --no-stream","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stats --no-stream\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":411,"title":412,"description":413,"code":414,"language":44,"filename":9,"whenToUse":9,"highlighted":415},"52156054-9fad-409c-ad02-5426c0e1cee4","Formatted Resource Statistics","Displays container resource usage statistics with a custom table format, showing the container name and CPU usage percentage, for a concise view.","docker stats --format \"table {{.Container}}\\t{{.CPUPerc}}\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stats --format \"table {{.Container}}\\t{{.CPUPerc}}\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":417,"title":418,"description":419,"code":420,"language":44,"filename":9,"whenToUse":9,"highlighted":421},"031d487b-9c9c-48f9-aaab-75996d5d3020","Real-time Docker Events","Streams real-time events from the Docker daemon, such as creation, start, stop, and destruction of containers, images, and volumes, useful for auditing and automation.","docker events","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> events\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":423,"title":424,"description":425,"code":426,"language":44,"filename":9,"whenToUse":9,"highlighted":427},"f568d021-eafc-46b2-90d6-db9ce7bcf669","Inspect Container Details","Displays detailed low-level information about a specific Docker container in JSON format, including network configurations, volumes, status, metadata, and event history.","docker inspect container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> inspect container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":429,"title":430,"description":431,"code":432,"language":44,"filename":9,"whenToUse":9,"highlighted":433},"ab518a2c-5b98-4b41-ab55-b91ee12073dd","Inspect Image Details","Displays detailed low-level information about a specific Docker image in JSON format, including layers, metadata, port configurations, and environment variables.","docker inspect image_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> inspect image_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":435,"title":436,"description":437,"snippets":438},"3745ebd8-b53a-4d0f-9504-fcf954d02e4c","⚡ Execution and Interaction","Use this section to interact directly with running containers, execute commands inside them, copy files between host and container, or manage port mappings and networks.",[439,445,451,457,463,469,475,481,487,493,499],{"id":440,"title":441,"description":442,"code":443,"language":44,"filename":9,"whenToUse":9,"highlighted":444},"1c9152d2-2f71-4fc6-8081-cd916c95eb32","Access Interactive Shell in Container (Bash)","Executes the `bash` command inside a running Docker container, allocating a pseudo-TTY (`-t`) and keeping standard input open (`-i`) for interaction, allowing access to the container's shell.","docker exec -it container_name bash","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec -it container_name bash\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":446,"title":447,"description":448,"code":449,"language":44,"filename":9,"whenToUse":9,"highlighted":450},"3227e55e-7880-4730-8764-1bb22bcd92ef","Access Basic Shell in Container (Sh)","Executes the `sh` (basic shell) command inside a running Docker container in interactive mode with pseudo-TTY, useful when `bash` is not available in the container.","docker exec -it container_name sh","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec -it container_name sh\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":452,"title":453,"description":454,"code":455,"language":44,"filename":9,"whenToUse":9,"highlighted":456},"123968b7-3bf6-4954-a65b-2f130d3e4c8d","Execute Specific Command in Container","Executes a specific command (`ls -la \u002Fapp`) inside a running Docker container, without needing shell interaction.","docker exec container_name ls -la \u002Fapp","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec container_name ls -la \u002Fapp\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":458,"title":459,"description":460,"code":461,"language":44,"filename":9,"whenToUse":9,"highlighted":462},"697979a7-cc4b-40e2-88a5-3340a23ba89b","Copy File from Host to Container","Copies the `file.txt` file from the host to the `\u002Fapp\u002F` directory inside the specified container (`container_name`).","docker cp file.txt container_name:\u002Fapp\u002F","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> cp file.txt container_name:\u002Fapp\u002F\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":464,"title":465,"description":466,"code":467,"language":44,"filename":9,"whenToUse":9,"highlighted":468},"25294e40-bf83-4c10-8517-f8cdb14f55cd","Copy File\u002FDirectory from Container to Host","Copies the `logs` directory from inside the specified container (`container_name:\u002Fapp\u002Flogs`) to the local `.\u002Flogs` directory on the host.","docker cp container_name:\u002Fapp\u002Flogs .\u002Flogs","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> cp container_name:\u002Fapp\u002Flogs .\u002Flogs\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":470,"title":471,"description":472,"code":473,"language":44,"filename":9,"whenToUse":9,"highlighted":474},"84dd4586-d5e7-4fc9-aa19-f5884057eac5","View Mapped Ports of a Container","Displays port mappings for a specific Docker container, showing which host ports are connected to which container ports.","docker port container_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> port container_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":476,"title":477,"description":478,"code":479,"language":44,"filename":9,"whenToUse":9,"highlighted":480},"a75bca96-6fe2-4ad3-9aa5-0253e312433d","Map Specific Port When Running Container","Runs a container from the `nginx` image and maps host port `8080` to container port `80` (`-p` for \"publish\"), allowing web server access.","docker run -p 8080:80 nginx","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run -p 8080:80 nginx\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":482,"title":483,"description":484,"code":485,"language":44,"filename":9,"whenToUse":9,"highlighted":486},"8b805481-0e6e-4c97-9822-3adbbb47327e","Automatically Map Ports When Running Container","Runs an `nginx` image container and automatically maps all ports exposed in the container's `Dockerfile` to random, unused ports on the host (`-P` for \"publish all\").","docker run -P nginx","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run -P nginx\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":488,"title":489,"description":490,"code":491,"language":44,"filename":9,"whenToUse":9,"highlighted":492},"2f3c1bc4-4449-4767-bec0-0e1fffc232df","Execute Command as Root User in Container","Executes the `bash` command inside a running container as the `root` user (`-u`), useful for administrative tasks requiring elevated privileges.","docker exec -u root container bash","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec -u root container bash\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":494,"title":495,"description":496,"code":497,"language":44,"filename":9,"whenToUse":9,"highlighted":498},"c9faabbc-ad6c-429a-bc6e-0b20697a56cc","Execute Command in Background in Container","Executes the `sleep 60` command inside a running container in `detached` mode (background, `-d`), without blocking the current terminal.","docker exec -d container sleep 60","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec -d container sleep 60\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":500,"title":501,"description":502,"code":503,"language":44,"filename":9,"whenToUse":9,"highlighted":504},"032751f5-5627-48a5-997f-a9b659a6f66b","Execute Command with Environment Variables in Container","Executes a command (`cmd`) inside a running container, passing an environment variable (`--env VAR=value`) that will only be available for the execution of that command.","docker exec -it container --env VAR=value cmd","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec -it container --env VAR=value cmd\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":506,"title":507,"description":508,"snippets":509},"247a443f-bf22-48c4-8147-f150f1350b5e","🧹 Cleanup and Maintenance","Use this section to free disk space, remove unused Docker resources, or clean the Docker environment to maintain efficiency.",[510,516,522,528,534,538,544,550,556,562,568,572],{"id":511,"title":512,"description":513,"code":514,"language":44,"filename":9,"whenToUse":9,"highlighted":515},"a6d86fda-00f9-43da-8638-47266f381763","Remove Unused Docker Data","Removes all unused Docker data, including stopped containers, unused networks, and dangling images, but not volumes by default.","docker system prune","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> system prune\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":517,"title":518,"description":519,"code":520,"language":44,"filename":9,"whenToUse":9,"highlighted":521},"b0dce4d1-8c64-4e6d-ac00-fc84a87d45a7","Remove ALL Unused Docker Data","Removes all unused Docker data, including stopped containers, unused networks, dangling images, and all untagged images (`-a` for \"all\").","docker system prune -a","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> system prune -a\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":523,"title":524,"description":525,"code":526,"language":44,"filename":9,"whenToUse":9,"highlighted":527},"297999f2-7ddc-4dae-b569-372f9710f8c1","Remove Unused Data Including Volumes","Removes all unused Docker data, including volumes not referenced by any container (`--volumes`), as well as stopped containers, networks, and dangling images.","docker system prune --volumes","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> system prune --volumes\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":529,"title":530,"description":531,"code":532,"language":44,"filename":9,"whenToUse":9,"highlighted":533},"b8206500-b720-4657-a860-05add7d2047c","Remove Stopped Containers","Removes all stopped Docker containers, freeing up resources and disk space.","docker container prune","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> container prune\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":535,"title":536,"description":537,"code":325,"language":44,"filename":9,"whenToUse":9,"highlighted":326},"240d85a7-fadd-415f-a924-f6be9e60a9e4","Remove Orphan Images","Removes Docker images that are not associated with any container and have no tags (\"dangling\" or \"orphan\" images).",{"id":539,"title":540,"description":541,"code":542,"language":44,"filename":9,"whenToUse":9,"highlighted":543},"5119ffbe-2b89-4f5c-9dc8-b09366acccf2","Remove Unused Volumes","Removes all Docker volumes not in use by any container, freeing up disk space. Use with caution to avoid data loss.","docker volume prune","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> volume prune\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":545,"title":546,"description":547,"code":548,"language":44,"filename":9,"whenToUse":9,"highlighted":549},"fa6f3799-da3f-4d50-8ad0-43278a9a7f61","Remove Unused Networks","Removes all Docker networks not in use by any container, freeing up network resources.","docker network prune","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> network prune\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":551,"title":552,"description":553,"code":554,"language":44,"filename":9,"whenToUse":9,"highlighted":555},"5734b163-a75e-4623-9f08-435cb4cb85ad","View Detailed Space Usage","Displays detailed Docker disk space usage (`-v` for \"verbose\"), showing more granular information about the consumption of each resource type.","docker system df -v","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> system df -v\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":557,"title":558,"description":559,"code":560,"language":44,"filename":9,"whenToUse":9,"highlighted":561},"107b6ae6-4334-4775-a7d6-27281d0ba05d","Filter Docker System Events","Displays Docker daemon events, filtering only events related to containers (`--filter type=container`), useful for monitoring specific activities.","docker system events --filter type=container","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> system events --filter type=container\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":563,"title":564,"description":565,"code":566,"language":44,"filename":9,"whenToUse":9,"highlighted":567},"17d82405-4039-4dd2-a8c2-4041f9f5593c","Clear Docker Build Cache","Clears the Docker build cache, removing unused intermediate layers, which can free up disk space and resolve build issues.","docker builder prune","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> builder prune\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":569,"title":570,"description":571,"code":87,"language":44,"filename":9,"whenToUse":9,"highlighted":88},"5b9b032c-5406-4981-852b-0165b43f3ec4","View Disk Space Usage","Displays a summary of disk space usage by Docker, detailing consumption by images, containers, volumes, and build cache.",{"id":573,"title":574,"description":575,"code":259,"language":44,"filename":9,"whenToUse":9,"highlighted":260},"ec56d915-5a6e-4f0a-a7c2-6f0a9d8ceb2c","View Formatted Image Sizes","Lists Docker images with a custom table format, displaying repository, tag, and size, for a quick analysis of space occupied by images.",{"id":577,"title":578,"description":579,"snippets":580},"25c7f6c7-fca5-454b-a9c8-0695817ebd6b","🔧 Docker Compose","Use this section for multi-container applications or development environments using Docker Compose to orchestrate services. Covers basic commands to advanced configurations and CI\u002FCD integration.",[581,587,593,599,605,611,617,623,629,635,641,647,653,659,665,671,677,683,689,695,701,707,713,719,725,731,737,743,749,755,761,767,773,779,785,791,797,803,809,815,821,827,833,839,845,851,857,863,869,875,881,887,893,899,905,911,917,923,929,935,941,947,953,959,965,971,977,983,989,995,1001,1007,1013,1019,1025,1031,1037,1043,1049,1055,1061,1067,1073,1079],{"id":582,"title":583,"description":584,"code":585,"language":44,"filename":9,"whenToUse":9,"highlighted":586},"5a966ed7-aeb2-40b6-9956-019ad93258fa","Check Docker Compose Version","Displays the installed Docker Compose version, useful for checking compatibility and available features.","docker-compose --version","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> --version\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":588,"title":589,"description":590,"code":591,"language":44,"filename":9,"whenToUse":9,"highlighted":592},"3156d0ac-19f4-4571-999a-58eefc1edc58","Bring Up Services (Foreground)","Builds, (re)creates, starts, and attaches to containers for all services defined in the `docker-compose.yml` file, running in the foreground and displaying logs.","docker-compose up","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":594,"title":595,"description":596,"code":597,"language":44,"filename":9,"whenToUse":9,"highlighted":598},"fb887c6d-7438-4d2d-bb51-2a560dd298f8","Bring Up Services (Background - Detached)","Builds, (re)creates, starts, and attaches to containers for all services defined in the `docker-compose.yml` file, running in `detached` (background) mode.","docker-compose up -d","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up -d\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":600,"title":601,"description":602,"code":603,"language":44,"filename":9,"whenToUse":9,"highlighted":604},"bfafb9a9-4b51-45c0-8ef5-e526191269d1","Start Specific Service","Starts only the `backend` service and its dependencies defined in the `docker-compose.yml` file.","docker-compose up backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":606,"title":607,"description":608,"code":609,"language":44,"filename":9,"whenToUse":9,"highlighted":610},"434cee86-e4a5-4b07-b52c-276978e05d13","Start Services Rebuilding Images","Builds service images before starting containers, ensuring that images are updated with the latest changes in the `Dockerfile`.","docker-compose up --build","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up --build\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":612,"title":613,"description":614,"code":615,"language":44,"filename":9,"whenToUse":9,"highlighted":616},"7c7eb493-4616-4936-834e-2e1faa1d07a5","Start Services Forcing Recreation","Recreates all containers, even if there are no changes in configuration or image, useful for troubleshooting or applying new configurations.","docker-compose up --force-recreate","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up --force-recreate\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":618,"title":619,"description":620,"code":621,"language":44,"filename":9,"whenToUse":9,"highlighted":622},"ab6c531f-bdd0-42e9-b5ce-1c20b325ed03","Bring Up Services Removing Orphans","Removes service containers no longer defined in the `docker-compose.yml` file (orphans) upon startup, cleaning the environment.","docker-compose up --remove-orphans","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up --remove-orphans\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":624,"title":625,"description":626,"code":627,"language":44,"filename":9,"whenToUse":9,"highlighted":628},"39e2b5cb-61d1-4290-b695-6197e02cbfa4","Bring Up Service Without Dependencies","Starts a specific service without starting its dependencies, useful for testing a component in isolation.","docker-compose up --no-deps","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up --no-deps\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":630,"title":631,"description":632,"code":633,"language":44,"filename":9,"whenToUse":9,"highlighted":634},"0289f6dc-4888-4776-af9a-2a52eed91b7b","Bring Up Services with Custom Timeout","Sets a 30-second timeout for graceful container shutdown when stopping or restarting services during `up`.","docker-compose up --timeout 30","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up --timeout 30\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":636,"title":637,"description":638,"code":639,"language":44,"filename":9,"whenToUse":9,"highlighted":640},"52e7064f-d5e4-4482-9e64-93b496a6a949","Stop and Remove Services and Networks","Stops and removes containers, networks, and default volumes created by `docker-compose up`.","docker-compose down","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> down\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":642,"title":643,"description":644,"code":645,"language":44,"filename":9,"whenToUse":9,"highlighted":646},"4e7f0861-37cd-4a0a-bdfe-32030027af3f","Stop and Remove Services, Networks, and Volumes","Stops and removes containers, networks, and also named volumes defined in the `docker-compose.yml` file (`-v` for \"volumes\").","docker-compose down -v","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> down -v\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":648,"title":649,"description":650,"code":651,"language":44,"filename":9,"whenToUse":9,"highlighted":652},"d1fa2e11-d411-49a4-8f43-57edf4c0228a","Stop Services Only","Stops the containers for services defined in `docker-compose.yml`, but does not remove them, allowing them to be restarted later with `docker-compose start`.","docker-compose stop","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stop\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":654,"title":655,"description":656,"code":657,"language":44,"filename":9,"whenToUse":9,"highlighted":658},"e4a84d88-5b06-4e4b-9550-5712cd7df7f7","Stop Specific Service","Stops only the `backend` service container defined in `docker-compose.yml`.","docker-compose stop backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stop backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":660,"title":661,"description":662,"code":663,"language":44,"filename":9,"whenToUse":9,"highlighted":664},"673c3de2-46cf-4861-a115-fca93a9062c8","Stop and Remove Services and Images","Stops and removes containers, networks, and also images created by the services (`--rmi all`), freeing up more disk space.","docker-compose down --rmi all","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> down --rmi all\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":666,"title":667,"description":668,"code":669,"language":44,"filename":9,"whenToUse":9,"highlighted":670},"04ef44a0-4b69-449c-9d6e-fb4f2d4a45e8","Stop Services with Custom Timeout","Sets a 10-second timeout for graceful container shutdown when stopping services with `down`.","docker-compose down --timeout 10","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> down --timeout 10\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":672,"title":673,"description":674,"code":675,"language":44,"filename":9,"whenToUse":9,"highlighted":676},"65ba7091-fb23-4098-850f-c976286129dc","Force Container Removal","Removes stopped containers without prompting for confirmation (`-f` for \"force\").","docker-compose rm -f","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> rm -f\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":678,"title":679,"description":680,"code":681,"language":44,"filename":9,"whenToUse":9,"highlighted":682},"2ec24ca3-9ab9-45a7-b695-a26a1db14bf9","Stop and Remove Services and Orphans","Stops and removes containers, networks, and also any containers that are no longer referenced in the `docker-compose.yml` file.","docker-compose down --remove-orphans","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> down --remove-orphans\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":684,"title":685,"description":686,"code":687,"language":44,"filename":9,"whenToUse":9,"highlighted":688},"01a3db37-a2a9-4015-a1d3-5403763276ef","View Logs of All Services","Displays the consolidated log output of all services defined in `docker-compose.yml`.","docker-compose logs","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> logs\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":690,"title":691,"description":692,"code":693,"language":44,"filename":9,"whenToUse":9,"highlighted":694},"be0957ff-3e37-4669-9a15-8553ea37e829","Follow Logs of All Services","Displays the log output of all services in real-time, following new entries (`-f` for \"follow\"), keeping the connection open.","docker-compose logs -f","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> logs -f\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":696,"title":697,"description":698,"code":699,"language":44,"filename":9,"whenToUse":9,"highlighted":700},"373ee561-aed1-4690-bdae-092f3e33674d","View Specific Service Logs","Displays the log output only for the `backend` service.","docker-compose logs backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> logs backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":702,"title":703,"description":704,"code":705,"language":44,"filename":9,"whenToUse":9,"highlighted":706},"d066d9ed-5bd1-4599-9fee-c79a3bb7e4d6","Access Shell in Service Container","Executes the `bash` command inside the `backend` service container, allowing interactive access to the container's shell.","docker-compose exec backend bash","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec backend bash\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":708,"title":709,"description":710,"code":711,"language":44,"filename":9,"whenToUse":9,"highlighted":712},"df3619e1-fd68-4044-91c1-eb3e6413de08","Execute Specific Command in Service Container","Executes a specific command (`cargo build`) inside the `backend` service container.","docker-compose exec backend cargo build","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec backend cargo build\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":714,"title":715,"description":716,"code":717,"language":44,"filename":9,"whenToUse":9,"highlighted":718},"b90630d0-229a-48ae-b5d9-1435c866082f","View Last N Lines of Service Log","Displays the last 50 lines of the `backend` service log.","docker-compose logs --tail 50 backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> logs --tail 50 backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":720,"title":721,"description":722,"code":723,"language":44,"filename":9,"whenToUse":9,"highlighted":724},"f8ae760d-125c-493f-9fae-bff5a75a1354","View Service Logs From a Period","Displays the logs of the `backend` service generated in the last hour.","docker-compose logs --since=\"1h\" backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> logs --since=\"1h\" backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":726,"title":727,"description":728,"code":729,"language":44,"filename":9,"whenToUse":9,"highlighted":730},"f0384a40-8016-42b9-a459-f7a1d6de0de2","Execute Command Without TTY","Executes the `ls -la` command inside the `backend` service container without allocating a pseudo-TTY (`-T`), useful for automated scripts or when output does not require interactive formatting.","docker-compose exec -T backend ls -la","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec -T backend ls -la\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":732,"title":733,"description":734,"code":735,"language":44,"filename":9,"whenToUse":9,"highlighted":736},"c4603a6f-1e2b-470e-9787-78265c22480e","Execute Command as Specific User","Executes the `bash` command inside the `backend` service container as the `root` user (`-u`), useful for administrative tasks requiring elevated privileges.","docker-compose exec -u root backend bash","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec -u root backend bash\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":738,"title":739,"description":740,"code":741,"language":44,"filename":9,"whenToUse":9,"highlighted":742},"5b9f079e-08b6-457d-8b81-c3007a376dd4","Build Images for All Services","Builds images for all services that have a `build` defined in `docker-compose.yml`.","docker-compose build","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":744,"title":745,"description":746,"code":747,"language":44,"filename":9,"whenToUse":9,"highlighted":748},"14a9f25c-b848-4802-a94f-6c68182097b6","Build Specific Service Image","Builds the image only for the `backend` service.","docker-compose build backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":750,"title":751,"description":752,"code":753,"language":44,"filename":9,"whenToUse":9,"highlighted":754},"7cfff489-6dc0-4b79-9441-3f57b401321f","Build Images Without Cache","Builds service images without using layer cache, ensuring a clean and fresh build, useful for resolving cache issues.","docker-compose build --no-cache","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build --no-cache\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":756,"title":757,"description":758,"code":759,"language":44,"filename":9,"whenToUse":9,"highlighted":760},"a87c2b77-5f54-49b6-9e33-c6109e49a354","Scale Service to Multiple Instances","Starts services in `detached` mode and scales the `backend` service to 3 instances, useful for load balancing or performance testing.","docker-compose up -d --scale backend=3","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up -d --scale backend=3\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":762,"title":763,"description":764,"code":765,"language":44,"filename":9,"whenToUse":9,"highlighted":766},"53761dd4-c15f-4044-819d-2d9e09bb8cde","Update Service Images (Pull)","Pulls the latest images for all services defined in `docker-compose.yml` from their respective repositories.","docker-compose pull","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> pull\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":768,"title":769,"description":770,"code":771,"language":44,"filename":9,"whenToUse":9,"highlighted":772},"eaffde30-3d3e-4f9a-8f80-0bc260afbf4f","Validate Docker Compose Configuration","Validates and displays the effective configuration of `docker-compose.yml` (and override files), useful for debugging the configuration before starting services.","docker-compose config","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> config\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":774,"title":775,"description":776,"code":777,"language":44,"filename":9,"whenToUse":9,"highlighted":778},"a05352b0-dec0-4558-80a2-55e0437b98dd","View Service Status","Lists all containers created by Docker Compose, showing their status, ports, and names, similar to `docker ps` but focused on Compose services.","docker-compose ps","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> ps\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":780,"title":781,"description":782,"code":783,"language":44,"filename":9,"whenToUse":9,"highlighted":784},"f9d604e3-e87b-4e38-acdd-c1efe826e5b4","Parallel Image Build","Builds images for multiple services in parallel, speeding up the build process for projects with many services.","docker-compose build --parallel","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build --parallel\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":786,"title":787,"description":788,"code":789,"language":44,"filename":9,"whenToUse":9,"highlighted":790},"26fe92d7-ff70-44b6-9a34-60c4d767df99","Build Images with Detailed Progress","Builds images with detailed progress output and no special formatting, useful for CI\u002FCD environments or logs.","docker-compose build --progress=plain","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> build --progress=plain\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":792,"title":793,"description":794,"code":795,"language":44,"filename":9,"whenToUse":9,"highlighted":796},"b7006bed-a5ee-4a90-9670-74bdf60d2419","Scale Multiple Services","Starts services and scales multiple services simultaneously, for example, `web` to 2 instances and `db` to 1 instance, in a single operation.","docker-compose up --scale web=2 --scale db=1","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up --scale web=2 --scale db=1\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":798,"title":799,"description":800,"code":801,"language":44,"filename":9,"whenToUse":9,"highlighted":802},"14583317-d327-414d-a696-d525ca61b3eb","Execute Command with Inline Environment Variable","Executes a one-off command in a new `backend` service container, passing an environment variable `VAR` with the value `value` inline.","docker-compose run --env VAR=value backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run --env VAR=value backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":804,"title":805,"description":806,"code":807,"language":44,"filename":9,"whenToUse":9,"highlighted":808},"d4e4d167-30bb-494e-898d-d0e3eb1a2bf2","Execute Command with .env File Variables","Executes a one-off command in a new `backend` service container, loading environment variables from a specific `.env` file.","docker-compose run --env-file .env backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run --env-file .env backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":810,"title":811,"description":812,"code":813,"language":44,"filename":9,"whenToUse":9,"highlighted":814},"5859b0a2-74ea-4f79-a915-9155f2354c98","View Configured Service Names","Displays only the names of services defined in the `docker-compose.yml` configuration, useful for scripts or automation.","docker-compose config --services","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> config --services\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":816,"title":817,"description":818,"code":819,"language":44,"filename":9,"whenToUse":9,"highlighted":820},"b7dc62c9-ad1e-4d0e-88f1-750f5a9a9710","Bring Up Services with Specific .env File","Starts services using environment variables defined in a specific `prod.env` file, overriding or complementing those from the default `.env` file, for different environments.","docker-compose --env-file prod.env up","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> --env-file prod.env up\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":822,"title":823,"description":824,"code":825,"language":44,"filename":9,"whenToUse":9,"highlighted":826},"a49a694f-a98a-406c-a19c-9b95dd1936e5","View Environment Variables in New Container","Executes the `env` command inside a new `backend` service container and removes it (`--rm`) after execution, to list the environment variables available to the service.","docker-compose run --rm backend env","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run --rm backend env\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":828,"title":829,"description":830,"code":831,"language":44,"filename":9,"whenToUse":9,"highlighted":832},"436112af-815e-4030-bddc-9a882cfa1427","View Environment Variables in Running Container","Executes the `printenv` command inside the *running* `backend` service container to list its environment variables.","docker-compose exec backend printenv","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec backend printenv\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":834,"title":835,"description":836,"code":837,"language":44,"filename":9,"whenToUse":9,"highlighted":838},"e3025fd7-601f-4179-80a2-1d9806c82d64","Start Services with Custom Project Name","Starts services under a specific project name (`--project-name projeto`), which affects the names of created containers, networks, and volumes, useful for isolating environments.","docker-compose --project-name projeto up","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> --project-name projeto up\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":840,"title":841,"description":842,"code":843,"language":44,"filename":9,"whenToUse":9,"highlighted":844},"15036b0d-4f38-42fb-a077-5e6f1020bc7e","Start Services with Specific Volume Driver","Starts services in `detached` mode, specifying the `local` volume driver for volumes defined in the services. Generally, the driver is configured directly in `docker-compose.yml`.","docker-compose up -d --volume-driver local","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up -d --volume-driver local\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":846,"title":847,"description":848,"code":849,"language":44,"filename":9,"whenToUse":9,"highlighted":850},"65e220f2-995e-464e-859c-8c4b2baf9883","List Volume Content in Container","Executes the `ls \u002Fdata` command inside the `backend` service container to list the content of a volume mounted at `\u002Fdata`.","docker-compose exec backend ls \u002Fdata","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec backend ls \u002Fdata\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":852,"title":853,"description":854,"code":855,"language":44,"filename":9,"whenToUse":9,"highlighted":856},"58318d4f-aed4-4399-91dd-add4745103c5","List Shared Volume Content in New Container","Executes the `ls \u002Fshared` command in a new `backend` service container (which is removed after execution) to list the content of a shared volume mounted at `\u002Fshared`.","docker-compose run --rm backend ls \u002Fshared","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run --rm backend ls \u002Fshared\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":858,"title":859,"description":860,"code":861,"language":44,"filename":9,"whenToUse":9,"highlighted":862},"392a2028-9c8d-4531-8688-dfdf910f20ba","Add Network Alias (YAML Configuration)","This command does not directly add a network alias via `up`. Network aliases for services are defined within the service's network configuration in the `docker-compose.yml` file to allow other services to find it by that name.","docker-compose up --network-alias web","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up --network-alias web\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":864,"title":865,"description":866,"code":867,"language":44,"filename":9,"whenToUse":9,"highlighted":868},"38fe54b4-0448-4b1f-915a-c52b648eff82","Testar Conectividade entre Serviços","Executa o comando `ping database` dentro do container do serviço `backend` para testar a conectividade de rede com o serviço `database`.","docker-compose exec backend ping database","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec backend ping database\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":870,"title":871,"description":872,"code":873,"language":44,"filename":9,"whenToUse":9,"highlighted":874},"d94eb4f2-dea0-4d4b-a85a-9b0e17e0b571","Remove Volumes When Stopping Services","Stops and removes containers, networks, and all named volumes defined in the `docker-compose.yml` file.","docker-compose down --volumes","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> down --volumes\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":876,"title":877,"description":878,"code":879,"language":44,"filename":9,"whenToUse":9,"highlighted":880},"900452a7-3d16-4931-9476-23b2d4d2e2b6","List Docker Compose Project Volumes","Lists all Docker volumes and filters those containing the project name (`projeto`), useful for identifying volumes created by Docker Compose.","docker volume ls | grep projeto","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> volume ls | grep projeto\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":882,"title":883,"description":884,"code":885,"language":44,"filename":9,"whenToUse":9,"highlighted":886},"34f82033-bc8d-447b-8ccb-cc846e503ba9","List Docker Compose Project Networks","Lists all Docker networks and filters those containing the project name (`projeto`), useful for identifying networks created by Docker Compose.","docker network ls | grep projeto","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> network ls | grep projeto\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":888,"title":889,"description":890,"code":891,"language":44,"filename":9,"whenToUse":9,"highlighted":892},"cb0f416b-14d7-4f55-9d16-01e6803df5ad","Start Service Without Its Dependencies","Starts the `backend` service without starting its dependencies, useful for isolating and testing a single service.","docker-compose up --no-deps backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up --no-deps backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":894,"title":895,"description":896,"code":897,"language":44,"filename":9,"whenToUse":9,"highlighted":898},"4ebf35f3-57ad-45ee-bc79-a856bd96c45d","Recreate Service Without Dependencies","Recreates the containers of a specific service without starting its dependencies, useful for forcing a recreation without affecting other services.","docker-compose up --force-recreate --no-deps","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up --force-recreate --no-deps\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":900,"title":901,"description":902,"code":903,"language":44,"filename":9,"whenToUse":9,"highlighted":904},"fae7b569-9023-444e-ba24-2482dc20c920","Restart Specific Service","Restarts the `backend` service container.","docker-compose restart backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> restart backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":906,"title":907,"description":908,"code":909,"language":44,"filename":9,"whenToUse":9,"highlighted":910},"78900394-db65-4faa-9fdf-d412ab765e4f","Restart All Services","Restarts all service containers defined in `docker-compose.yml`.","docker-compose restart","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> restart\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":912,"title":913,"description":914,"code":915,"language":44,"filename":9,"whenToUse":9,"highlighted":916},"5495df9c-911b-45dc-80b3-c5521138a686","Pause Specific Service","Pauses the `backend` service container, suspending its processes without terminating it.","docker-compose pause backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> pause backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":918,"title":919,"description":920,"code":921,"language":44,"filename":9,"whenToUse":9,"highlighted":922},"7f063c40-be30-4802-8169-37f10454a5e2","Despausar Serviço Específico","Despausa o container do serviço `backend` que foi previamente pausado.","docker-compose unpause backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> unpause backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":924,"title":925,"description":926,"code":927,"language":44,"filename":9,"whenToUse":9,"highlighted":928},"63be94b2-a85c-4162-a92e-fa1e34b0a7fa","Kill Specific Service","Forces the immediate stop of the `backend` service container by sending a SIGKILL signal, without waiting for a graceful shutdown.","docker-compose kill backend","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> kill backend\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":930,"title":931,"description":932,"code":933,"language":44,"filename":9,"whenToUse":9,"highlighted":934},"4b43e064-85dc-410a-97f7-07586fa3a783","Scale Service to Zero Instances","Reduces the number of instances of the `backend` service to zero, effectively stopping and removing all containers associated with it.","docker-compose up --scale backend=0","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> up --scale backend=0\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":936,"title":937,"description":938,"code":939,"language":44,"filename":9,"whenToUse":9,"highlighted":940},"53e386e0-ab2c-4638-b575-157735f06d79","Start Services with Specific Compose File","Starts services using an alternative `docker-compose` file (`docker-compose.prod.yml`) instead of the default, useful for different environments (production, development).","docker-compose -f docker-compose.prod.yml up","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -f docker-compose.prod.yml up\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":942,"title":943,"description":944,"code":945,"language":44,"filename":9,"whenToUse":9,"highlighted":946},"dbfbc0c5-8b6d-4c12-8cb4-e650ed1dd77b","Start Services with Multiple Compose Files","Starts services by combining configurations from multiple `docker-compose` files, where the second file (`override.yml`) can overwrite or extend the first.","docker-compose -f docker-compose.yml -f docker-compose.override.yml up","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -f docker-compose.yml -f docker-compose.override.yml up\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":948,"title":949,"description":950,"code":951,"language":44,"filename":9,"whenToUse":9,"highlighted":952},"67b3bcc3-b0b0-4833-87bb-d1536d81b432","Start Services in Compatibility Mode","Activates compatibility mode, which attempts to convert Compose `deploy` options to Docker `run` options, useful for compatibility with Docker Swarm.","docker-compose --compatibility up","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> --compatibility up\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":954,"title":955,"description":956,"code":957,"language":44,"filename":9,"whenToUse":9,"highlighted":958},"7937b7ec-4556-41fb-babe-1c3f328721a6","Start Services with Detailed Output (Verbose)","Starts services and displays detailed output (`--verbose`) of what Docker Compose is doing, useful for debugging startup issues.","docker-compose --verbose up","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> --verbose up\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":960,"title":961,"description":962,"code":963,"language":44,"filename":9,"whenToUse":9,"highlighted":964},"bbeeb87c-7f75-48f1-b7f2-eab5d99de844","Start Services Without Colors (No ANSI)","Starts services, disabling ANSI (color) output in the terminal (`--no-ansi`), useful for logs in systems that do not interpret color codes or for logging to files.","docker-compose --no-ansi up","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> --no-ansi up\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":966,"title":967,"description":968,"code":969,"language":44,"filename":9,"whenToUse":9,"highlighted":970},"c053e453-8b74-4e93-a4c0-a69c23471ad3","Start Services with Specific Profile","Starts services belonging to the `dev` profile (`--profile`), allowing activation\u002Fdeactivation of service groups based on environment or purpose.","docker-compose --profile dev up","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> --profile dev up\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":972,"title":973,"description":974,"code":975,"language":44,"filename":9,"whenToUse":9,"highlighted":976},"3d1554cf-ea73-4e06-94b0-0ebafbbc476e","Start Services with Multiple Profiles","Starts services belonging to the `dev` AND `test` profiles, activating multiple service groups simultaneously.","docker-compose --profile dev --profile test up","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> --profile dev --profile test up\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":978,"title":979,"description":980,"code":981,"language":44,"filename":9,"whenToUse":9,"highlighted":982},"eec35260-0dde-4db9-b15c-674403c76a4d","Validate Configuration by Resolving Environment Variables","Validates and displays the `docker-compose.yml` configuration, resolving and substituting all environment variables with their current values, useful for checking the final configuration.","docker-compose config --resolve-env-vars","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> config --resolve-env-vars\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":984,"title":985,"description":986,"code":987,"language":44,"filename":9,"whenToUse":9,"highlighted":988},"1573c17c-a293-4b5a-a234-6129cd231514","Run Automated Tests (CI\u002FCD)","Starts the services defined in `docker-compose.test.yml` and stops all other containers if one exits (`--abort-on-container-exit`), ideal for automated testing environments where a test failure should stop everything.","docker-compose -f docker-compose.test.yml up --abort-on-container-exit","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -f docker-compose.test.yml up --abort-on-container-exit\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":990,"title":991,"description":992,"code":993,"language":44,"filename":9,"whenToUse":9,"highlighted":994},"65d6e11f-2824-4dbb-8237-70ebd38720ca","CI\u002FCD Environment with Build","Starts the services defined in `docker-compose.ci.yml`, rebuilding the images, for a Continuous Integration (CI) environment ensuring the environment is always up-to-date.","docker-compose -f docker-compose.ci.yml up --build","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -f docker-compose.ci.yml up --build\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":996,"title":997,"description":998,"code":999,"language":44,"filename":9,"whenToUse":9,"highlighted":1000},"9775c38f-847e-4c9f-9e28-967a6febfa38","Run Unit Tests in Container","Executes the `npm test` command in a new `backend` service container and removes it (`--rm`) after execution, ideal for running unit or integration tests in isolation.","docker-compose run --rm backend npm test","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run --rm backend npm test\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1002,"title":1003,"description":1004,"code":1005,"language":44,"filename":9,"whenToUse":9,"highlighted":1006},"a54113c4-c01a-4d50-b930-e0868f932f71","Run Code Lint in Container","Executes the `flake8` lint tool in a new `backend` service container and removes it (`--rm`) after execution, for static Python code analysis.","docker-compose run --rm backend flake8 .","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run --rm backend flake8 .\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1008,"title":1009,"description":1010,"code":1011,"language":44,"filename":9,"whenToUse":9,"highlighted":1012},"827a0528-e753-4047-8ad0-4b2801867e22","Run Database Migrations","Executes the `python manage.py migrate` command in a new `backend` service container and removes it (`--rm`) after execution, to apply database migrations in Django applications.","docker-compose run --rm backend python manage.py migrate","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run --rm backend python manage.py migrate\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1014,"title":1015,"description":1016,"code":1017,"language":44,"filename":9,"whenToUse":9,"highlighted":1018},"22aff30c-bbcb-4f1b-9fda-2f05fd6a32b5","Collect Static Files (Django)","Executes the `python manage.py collectstatic` command inside the running `backend` service container to collect static files in Django applications.","docker-compose exec backend python manage.py collectstatic","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec backend python manage.py collectstatic\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1020,"title":1021,"description":1022,"code":1023,"language":44,"filename":9,"whenToUse":9,"highlighted":1024},"9af0d32a-7625-49d2-8d18-8b516fafe78f","Recycle Docker Compose Environment","First, stops and removes all services and their networks (`down`), then starts them again, rebuilding the images (`up --build`), useful for a complete development environment \"reset\".","docker-compose down && docker-compose up --build","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker-compose\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> down &#x26;&#x26; docker-compose up --build\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1026,"title":1027,"description":1028,"code":1029,"language":44,"filename":9,"whenToUse":9,"highlighted":1030},"c1604ae6-8e61-4bd6-9c4d-8c821e64abf7","Check Docker Compose V2 Version","Displays the Docker Compose V2 version, which is integrated into the Docker client (the `compose` command is a `docker` subcommand).","docker compose version","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> compose version\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1032,"title":1033,"description":1034,"code":1035,"language":44,"filename":9,"whenToUse":9,"highlighted":1036},"ca74f39d-5e69-4648-99ef-368d658234df","Bring Up Services (Docker Compose V2)","Starts the services defined in the `docker-compose.yml` file using the Docker Compose V2 syntax.","docker compose up","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> compose up\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1038,"title":1039,"description":1040,"code":1041,"language":44,"filename":9,"whenToUse":9,"highlighted":1042},"4def21c4-4aa7-4493-ba22-7f4b9de109d6","Watch Mode (Docker Compose V2)","Monitors the file system and automatically restarts or rebuilds services when changes are detected, useful for local development with instant feedback.","docker compose watch","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> compose watch\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1044,"title":1045,"description":1046,"code":1047,"language":44,"filename":9,"whenToUse":9,"highlighted":1048},"0488d989-1925-4dc2-992f-ea3eb8cc5c09","Convert to Docker Compose V2 (Alpha)","Attempts to convert a `docker-compose.yml` file from V1 to V2 syntax, useful for migration. (Alpha command, subject to change).","docker compose alpha convert","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> compose alpha convert\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1050,"title":1051,"description":1052,"code":1053,"language":44,"filename":9,"whenToUse":9,"highlighted":1054},"6b4015eb-a574-43ca-bfc8-bdfd9aa244e2","Configuration in JSON (Docker Compose V2)","Validates and displays the effective `docker-compose.yml` configuration in JSON format, useful for programmatic processing or integration with other tools.","docker compose config --format json","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> compose config --format json\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1056,"title":1057,"description":1058,"code":1059,"language":44,"filename":9,"whenToUse":9,"highlighted":1060},"53857431-67d6-4560-9538-b18c990d68a7","Execute Command (Docker Compose V2)","Executes the `bash` command in a new `backend` service container (V2) and removes it (`--rm`) after execution.","docker compose run --rm backend bash","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> compose run --rm backend bash\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1062,"title":1063,"description":1064,"code":1065,"language":44,"filename":9,"whenToUse":9,"highlighted":1066},"4ce5a223-6d07-4738-b2f1-9903793274b9","Wait for Container Health (Docker Compose V2)","Starts the services and waits until all containers are healthy (healthcheck) before considering the command complete, useful in CI\u002FCD scripts to ensure the application is ready.","docker compose up --wait","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> compose up --wait\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1068,"title":1069,"description":1070,"code":1071,"language":44,"filename":9,"whenToUse":9,"highlighted":1072},"a3018047-92ed-4b46-a9de-98adc92e6598","Attach Dependency Logs (Docker Compose V2)","Starts the services and attaches to the logs of all services, including their dependencies, useful for observing the complete application startup and debugging inter-service initialization issues.","docker compose up --attach dependencies","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> compose up --attach dependencies\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1074,"title":1075,"description":1076,"code":1077,"language":44,"filename":9,"whenToUse":9,"highlighted":1078},"f94cfa2d-749e-4b3f-8fea-4330e169ca7c","Copy Files (Docker Compose V2)","Copies files or directories from inside the `backend` service container to a local directory on the host, using Docker Compose V2 syntax.","docker compose cp backend:\u002Fapp .\u002Flocal","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> compose cp backend:\u002Fapp .\u002Flocal\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1080,"title":1081,"description":1082,"code":1083,"language":44,"filename":9,"whenToUse":9,"highlighted":1084},"4d147fef-bf05-40cb-b19f-f98951d8f493","Stop Services with Timeout (Docker Compose V2)","Stops and removes services with a 30-second timeout for graceful shutdown, using Docker Compose V2 syntax.","docker compose down --timeout 30","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> compose down --timeout 30\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1086,"title":1087,"description":1088,"snippets":1089},"b7ca170d-7284-4349-8322-63ca1d1089dc","🌐 Networks and Volumes","Use this section for configuring communication between containers, managing data persistence, or isolating network environments in Docker.",[1090,1096,1102,1108,1114,1120,1126,1132,1138,1144,1150,1156,1162],{"id":1091,"title":1092,"description":1093,"code":1094,"language":44,"filename":9,"whenToUse":9,"highlighted":1095},"e56f65c7-6c4b-47a1-a68e-51fd287f6670","List Docker Networks","Lists all Docker networks on the system, showing their IDs, names, drivers, and scopes, useful for understanding network topology.","docker network ls","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> network ls\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1097,"title":1098,"description":1099,"code":1100,"language":44,"filename":9,"whenToUse":9,"highlighted":1101},"e7782b56-1485-4ccd-8417-1830d4727dd5","Inspect Docker Network","Displays detailed low-level information about the Docker `bridge` network in JSON format, including connected containers, IP configurations, and options.","docker network inspect bridge","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> network inspect bridge\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1103,"title":1104,"description":1105,"code":1106,"language":44,"filename":9,"whenToUse":9,"highlighted":1107},"aa56bb66-b7a0-46cd-81ce-362177e11817","Create New Docker Network","Creates a new Docker network named `blueprint-net` using the `bridge` driver, allowing containers connected to it to communicate easily by name.","docker network create --driver bridge blueprint-net","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> network create --driver bridge blueprint-net\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1109,"title":1110,"description":1111,"code":1112,"language":44,"filename":9,"whenToUse":9,"highlighted":1113},"07ad2baa-6fb7-4a28-847a-9348b23e5360","Remove Docker Network","Removes a specific Docker network. The network must be empty (no connected containers) to be removed.","docker network rm network_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> network rm network_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1115,"title":1116,"description":1117,"code":1118,"language":44,"filename":9,"whenToUse":9,"highlighted":1119},"cea21fe5-2311-41b4-a6c8-41bd29cd3ada","List Docker Volumes","Lists all locally stored Docker volumes, showing their names and drivers, useful for managing data persistence.","docker volume ls","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> volume ls\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1121,"title":1122,"description":1123,"code":1124,"language":44,"filename":9,"whenToUse":9,"highlighted":1125},"7dcdf64b-74e0-4a5d-b102-26ecb832408b","Inspect Docker Volume","Displays detailed low-level information about a specific Docker volume in JSON format, including its driver, mount point, and options.","docker volume inspect volume_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> volume inspect volume_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1127,"title":1128,"description":1129,"code":1130,"language":44,"filename":9,"whenToUse":9,"highlighted":1131},"7d3c8d1f-d7a1-4bfe-ae00-915608d789d6","Remove Docker Volume","Removes a specific Docker volume. The volume cannot be in use by any container. Use with caution to avoid data loss.","docker volume rm volume_name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> volume rm volume_name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1133,"title":1134,"description":1135,"code":1136,"language":44,"filename":9,"whenToUse":9,"highlighted":1137},"33cff0a0-555a-4371-a67f-e68a24aa9c95","Use Named Volume in Container","Runs an `alpine` image container and mounts a named volume (`nome_volume`) to the `\u002Fdata` directory inside the container, ensuring data persistence.","docker run -v nome_volume:\u002Fdata alpine","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run -v nome_volume:\u002Fdata alpine\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1139,"title":1140,"description":1141,"code":1142,"language":44,"filename":9,"whenToUse":9,"highlighted":1143},"0cf1e160-a1b5-459d-beb2-7f90217f9a37","Test Connection Between Containers","Executes the `ping container2` command inside `container1` to test network connectivity between two containers on the same Docker network.","docker exec -it container1 ping container2","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec -it container1 ping container2\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1145,"title":1146,"description":1147,"code":1148,"language":44,"filename":9,"whenToUse":9,"highlighted":1149},"bf19ca01-f0fe-47df-b7ba-c2f330904b49","Test API Connectivity Between Containers","Executes the `curl` command inside the `frontend` container to test the accessibility and health status of an API in the `backend` container on port `3001`.","docker exec frontend curl http:\u002F\u002Fbackend:3001\u002Fhealth","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> exec frontend curl http:\u002F\u002Fbackend:3001\u002Fhealth\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1151,"title":1152,"description":1153,"code":1154,"language":44,"filename":9,"whenToUse":9,"highlighted":1155},"8a09284d-d8a5-4acb-b3cb-6065318d5357","Connect Container to a Network","Connects an existing Docker container to a specific Docker network (in this case, the `bridge` network), allowing it to communicate with other containers on that network.","docker network connect bridge container","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> network connect bridge container\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1157,"title":1158,"description":1159,"code":1160,"language":44,"filename":9,"whenToUse":9,"highlighted":1161},"ebbe759f-3595-4af3-84c7-15c1244946d6","Disconnect Container from a Network","Disconnects a Docker container from a specific network (in this case, the `bridge` network), isolating it from that network.","docker network disconnect bridge container","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> network disconnect bridge container\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1163,"title":1164,"description":1165,"code":1166,"language":44,"filename":9,"whenToUse":9,"highlighted":1167},"8e076932-28a1-427d-b829-6400e94f0ff2","Create Named Volume","Creates a new Docker named volume `data`, which can be used to persist data between containers or between the host and containers, regardless of the container's lifecycle.","docker volume create --name data","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> volume create --name data\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1169,"title":1170,"description":1171,"snippets":1172},"0bfe8113-43a3-43b5-9885-0a5a06a1a272","🔧 Troubleshooting","Use this section when encountering issues with containers, networks, Docker installation, or performance. Contains commands to check status, diagnose common problems, and access system logs.",[1173,1177,1183,1189,1195,1201,1204,1208,1211,1214,1220,1226,1232,1238],{"id":1174,"title":1175,"description":1176,"code":93,"language":44,"filename":9,"whenToUse":9,"highlighted":94},"609016ef-9faa-4731-950a-7f26e032641c","Check Docker Installation","Checks the Docker client and server (daemon) versions, useful for confirming if Docker is installed and if the daemon is responding.",{"id":1178,"title":1179,"description":1180,"code":1181,"language":44,"filename":9,"whenToUse":9,"highlighted":1182},"0ebe7d69-3e24-410f-b2de-b7b68b0a0b38","Docker Service Status (Linux)","Checks the status of the Docker service on Linux using `systemctl`, showing if the daemon is active, running, and any recent system log messages.","systemctl status docker","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">systemctl\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> status docker\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1184,"title":1185,"description":1186,"code":1187,"language":44,"filename":9,"whenToUse":9,"highlighted":1188},"10434ba1-5dfb-45b9-a50a-566064ef5b69","Docker Service Status (Windows)","Checks the status of the Docker service on Windows using `Get-Service` (PowerShell), showing if the service is running.","Get-Service docker","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">Get-Service\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> docker\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1190,"title":1191,"description":1192,"code":1193,"language":44,"filename":9,"whenToUse":9,"highlighted":1194},"49c99582-50cb-4a03-a707-50921d0643ba","Add User to Docker Group (Linux)","Adds the current user (`$USER`) to the `docker` group on Linux, granting permissions to run Docker commands without `sudo`. Requires logout\u002Flogin or `newgrp docker` to apply.","sudo usermod -aG docker $USER","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">sudo\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> usermod -aG docker $USER\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1196,"title":1197,"description":1198,"code":1199,"language":44,"filename":9,"whenToUse":9,"highlighted":1200},"01f14771-5980-42a7-bda5-918526d2dc1a","Apply Docker Group in Current Shell","Changes the primary group of the current shell to `docker`, applying group permissions without needing to log out and log in again. Useful after adding the user to the docker group.","newgrp docker","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">newgrp\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> docker\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1202,"title":570,"description":1203,"code":87,"language":44,"filename":9,"whenToUse":9,"highlighted":88},"c924df8a-c6a7-42af-9bb9-9ac3912af124","Displays a summary of Docker disk space usage, detailing consumption by images, containers, volumes, and build cache, useful for diagnosing space issues.",{"id":1205,"title":1206,"description":1207,"code":520,"language":44,"filename":9,"whenToUse":9,"highlighted":521},"ed4f7bad-5cd4-4bbc-a8ae-6ba402f95f7e","Clean ALL Unused Docker Data","Removes all unused Docker data, including stopped containers, unused networks, dangling images, and all untagged images (`-a` for \"all\"), freeing up maximum possible space.",{"id":1209,"title":1092,"description":1210,"code":1094,"language":44,"filename":9,"whenToUse":9,"highlighted":1095},"55f51f70-0519-4500-9456-5be160bce702","Lists all Docker networks on the system, showing their IDs, names, drivers, and scopes, useful for diagnosing connectivity issues between containers.",{"id":1212,"title":1098,"description":1213,"code":1100,"language":44,"filename":9,"whenToUse":9,"highlighted":1101},"4ea852fd-e9b5-4211-8694-6cdcbbdc4dd2","Displays detailed low-level information about the Docker `bridge` network in JSON format, including connected containers and IP configurations, crucial for network debugging.",{"id":1215,"title":1216,"description":1217,"code":1218,"language":44,"filename":9,"whenToUse":9,"highlighted":1219},"2b0e7cb3-710e-412f-9f4a-516882de3344","Docker Daemon Logs (Linux)","Displays Docker service logs on Linux using `journalctl`, useful for debugging issues with the Docker daemon itself, such as startup failures or internal errors.","journalctl -u docker.service","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">journalctl\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -u docker.service\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1221,"title":1222,"description":1223,"code":1224,"language":44,"filename":9,"whenToUse":9,"highlighted":1225},"fd45c80d-b0cf-4d1a-8bff-90b0ece04dbb","Docker Logs (Windows Event Log)","Displays Docker-related event logs on Windows using `Get-EventLog` (PowerShell), useful for debugging issues with the operating system or the Docker service.","Get-EventLog -LogName Application -Source Docker","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">Get-EventLog\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -LogName Application -Source Docker\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1227,"title":1228,"description":1229,"code":1230,"language":44,"filename":9,"whenToUse":9,"highlighted":1231},"371f25f9-22a3-46a7-b3c5-e4750ef1f04e","List Docker Contexts","Lists all available Docker contexts, which allow easily switching between different Docker hosts (local, remote, cloud), useful for checking which environment is targeted by commands.","docker context ls","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> context ls\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1233,"title":1234,"description":1235,"code":1236,"language":44,"filename":9,"whenToUse":9,"highlighted":1237},"bdd38d68-d59a-4c74-90dd-f88db06e2a84","Change Active Docker Context","Changes the active Docker context to `my-context`, directing subsequent Docker commands to the host or environment defined in that context. Essential when working with multiple Docker environments.","docker context use my-context","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> context use my-context\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":1239,"title":1240,"description":1241,"code":1242,"language":44,"filename":9,"whenToUse":9,"highlighted":1243},"4be4de36-c727-4bdc-a457-3c9a33a67631","Verify Image Trust Signature","Verifies the trust signature of a specific Docker image, ensuring that the image has not been tampered with and comes from a trusted source, important for security.","docker trust inspect image:tag","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">docker\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> trust inspect image:tag\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",193]