Skip to content

Commit b6ec2b3

Browse files
committed
Rework README instructions a bit (-v -> --mount, etc.)
1 parent afe11fb commit b6ec2b3

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ If you can connect to the remote server using SSH, use the following command:
2323
```bash
2424
cd /some/ansible-project
2525

26-
docker run -it --rm \
26+
docker run
27+
-it \
28+
--rm \
2729
-w /work \
28-
-v `pwd`:/work \
29-
-v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa:ro \
30+
--mount type=bind,src=`pwd`,dst=/work \
31+
--mount type=bind,src$HOME/.ssh/id_ed25519,dst=/root/.ssh/id_ed25519,ro \
3032
--entrypoint=/bin/sh \
3133
ghcr.io/devture/ansible:latest
3234
```
@@ -41,11 +43,13 @@ If you'd like to run Ansible in a container on the server, and then target that
4143
```bash
4244
cd /some/ansible-project
4345

44-
docker run -it --rm \
46+
docker run
47+
-it \
48+
--rm \
4549
--privileged \
4650
--pid=host \
4751
-w /work \
48-
-v `pwd`:/work \
52+
--mount type=bind,src=`pwd`,dst=/work \
4953
--entrypoint=/bin/sh \
5054
ghcr.io/devture/ansible:latest
5155
```

0 commit comments

Comments
 (0)