Executing an interactive shell

Procedure

To troubleshoot or debug a container, enter the docker exec command with the Container ID and a shell file and path in the command line.
# sudo docker exec -it {container-id} /bin/bash
Note: If -i and -t parameters are not specified in original docker run statement when starting the container, terminal-related error messages may be displayed while trying to use commands inside the Container.
Note: If the Appliance Container was started with —net-host, the prompt will change to {hostname}#.