Entering Docker containers

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


  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 by running the following command with the target container name.
    For example,
    docker exec -it <container_name> bash