use bash in a docker image with a CMD code example Example: docker run command on container sudo docker exec -it <container name> <command>