---
datafolder: engine-cli
datafile: docker_container_exec
linkTitle: docker exec
title: docker container exec
aliases:
- /edge/engine/reference/commandline/container_exec/
- /engine/reference/commandline/container_exec/
- /engine/reference/commandline/exec/
- /reference/cli/docker/exec/
layout: cli
---

> **Introducing Docker Debug**
>
> To easily get a debug shell into any container, use `docker debug`. Docker
> Debug is a replacement for debugging with `docker exec`. With it, you can get
> a shell into any container or image, even slim ones, without modifications.
> Plus, you can bring along your favorite debugging tools in its customizable
> toolbox.
>
> Explore [Docker Debug](../debug.md) now.

<!--
This page is automatically generated from Docker's source code. If you want to
suggest a change to the text that appears here, open a ticket or pull request
in the source repository on GitHub:

https://github.com/docker/cli
-->
