Entering Docker containers

To enter a Docker container we can complete the following steps.


Procedure

  1. Run the following command to list all running Docker containers.

      docker ps

  2. Locate the name of the rarget container in the NAMES column.

  3. Start a bash shell.with the target container name. For example,

      docker exec -it <container_name> bash


Related concepts
Run Engine commands