docker service exec code example
Example 1: docker exec bash
//For executing commands in the container
docker exec -it <CONTAINER_NAME> bash
Example 2: docker exec
sudo docker exec --user root -it containerName /bin/bash
//For executing commands in the container
docker exec -it <CONTAINER_NAME> bash
sudo docker exec --user root -it containerName /bin/bash