docker run in interactive mode 1

docker run in interactive mode

sudo docker exec -it  

Here is what the above code is Doing:
1. We’re using the docker command to run a container.
2. We’re using the -d flag to run the container in detached mode.
3. We’re using the –name flag to name the container.
4. We’re using the -p flag to map the host port to the container port.
5. We’re using the -v flag to map the host directory to the container directory.
6. We’re using the -e flag to set environment variables.
7. We’re using the -it flags to run the container in interactive mode.
8. We’re using the to specify the image to use.
9. We’re using the to specify the command to run.

Similar Posts