> ## Content Index
> Fetch the complete content index at: https://www.bagz.fr/llms.txt
> Use this file to discover other available public pages before exploring further.

# Open bash session into a docker container
- URL: https://www.bagz.fr/open-bash-session-into-a-docker-container/
- Published: 2016-07-21T15:47:02.000Z
- Updated: 2016-07-21T15:47:02.000Z
- Author: bgazui
- Tags: Linux, #Migrated-1790668826633, #wp, #wp-post, #Import 2026-09-29 08:00

Once a docker container is started, it's always hard to get access into and see what's happening inside. As a workaround, the easiest way to understand what's happening in a container is to get a CLI on it and investigate.

Since version 1.3, you can easily open a bash session into a running container by using:

- The ID of the container:sudo docker exec -i -t 43f10328e4e9 /bin/bash
- Or the name of the container:sudo docker exec -i -t super\_docker /bin/bash

You will get access with a bash session to your container:$ root@43f10328e4e9:/#