diff --git a/Docker/commands/README.md b/Docker/commands/README.md index 68fc9fb..e42400b 100644 --- a/Docker/commands/README.md +++ b/Docker/commands/README.md @@ -211,6 +211,11 @@ docker run -v : -v ``` To make it read only so that when you add some files inside it, the container will not get created on your local machine use `-v port:port:ro` +- docker volume command for mounting the docker socket to the docker container for accessing the host's docker daemon for performing the continuous integration in jenkins while using docker as a agent.. +```bash +docker run -it -v /var/run/docker.sock:/var/run/docker.sock docker-image:version bin/bash +``` + ### Docker Compose - Run docker compose file.