ansible-doctor/docs/content/setup/docker.md

26 lines
726 B
Markdown
Raw Normal View History

2020-01-16 11:27:46 +01:00
---
title: Using docker
---
2020-06-03 16:22:56 +02:00
<!-- prettier-ignore-start -->
<!-- spellchecker-disable -->
2020-01-16 11:27:46 +01:00
{{< highlight Shell "linenos=table" >}}
docker run \
-e ANSIBLE_DOCTOR_ROLE_DIR=example/demo-role/ \
-e ANSIBLE_DOCTOR_OUTPUT_DIR=example/ \
-e ANSIBLE_DOCTOR_FORCE_OVERWRITE=true \
-e ANSIBLE_DOCTOR_CUSTOM_HEADER=example/demo-role/HEADER.md \
-e ANSIBLE_DOCTOR_LOG_LEVEL=info \
-e PY_COLORS=1 \
-v $(pwd):/doctor \
-w /doctor \
xoxys/ansible-doctor
{{< /highlight >}}
<!-- spellchecker-enable -->
2020-06-03 16:22:56 +02:00
<!-- prettier-ignore-end -->
2020-01-16 11:27:46 +01:00
{{< hint info >}}
2020-01-16 11:39:07 +01:00
**Info**\
2020-06-02 22:17:46 +02:00
Keep in mind, that you have to pass SELinux labels (:Z or :z) to your mount option if you are working on SELinux enabled systems.
2020-01-16 11:27:46 +01:00
{{< /hint >}}