exec command in dockerfile code example Example: docker exec bash //For executing commands in the container docker exec -it bash