execute command on container docker code example
Example 1: docker exec bash
//For executing commands in the container
docker exec -it bash
Example 2: docker run command on container
sudo docker exec -it
//For executing commands in the container
docker exec -it bash
sudo docker exec -it