Skip to content

Commit

Permalink
docs: add a docker concept (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuva19102003 authored Jan 14, 2024
1 parent 8bac09b commit d94982a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Docker/commands/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ docker run -v <path-to-folder-on-local-machine>:<path-to-folder-on-container> -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.
Expand Down

0 comments on commit d94982a

Please sign in to comment.