2020-01-16 10:27:46 +00:00
|
|
|
---
|
|
|
|
title: Using docker
|
|
|
|
---
|
|
|
|
|
2022-02-21 20:38:47 +00:00
|
|
|
```Shell
|
2020-01-16 10:27:46 +00:00
|
|
|
docker run \
|
2023-02-12 11:57:57 +00:00
|
|
|
-e ANSIBLE_DOCTOR_BASE_DIR=example/demo-role/ \
|
2020-01-16 10:27:46 +00:00
|
|
|
-e ANSIBLE_DOCTOR_FORCE_OVERWRITE=true \
|
2023-02-12 11:57:57 +00:00
|
|
|
-e ANSIBLE_DOCTOR_CUSTOM_HEADER=HEADER.md \
|
2020-01-16 10:27:46 +00:00
|
|
|
-e ANSIBLE_DOCTOR_LOG_LEVEL=info \
|
|
|
|
-e PY_COLORS=1 \
|
|
|
|
-v $(pwd):/doctor \
|
|
|
|
-w /doctor \
|
2020-09-27 12:21:54 +00:00
|
|
|
thegeeklab/ansible-doctor
|
2022-02-21 20:38:47 +00:00
|
|
|
```
|
2020-01-16 10:27:46 +00:00
|
|
|
|
2022-05-02 19:51:51 +00:00
|
|
|
{{< hint type=note >}}
|
2022-02-21 20:38:47 +00:00
|
|
|
Keep in mind, that SELinux labels (`:Z` or `:z`) need to be passed as mount option on SELinux enabled systems.
|
2020-01-16 10:27:46 +00:00
|
|
|
{{< /hint >}}
|