The issue occurs only if I have directories in the pulp-oci-images repository that were mounted as volumes to containers. The user and group ownership of those directories are not my user or group. Once I remove these directories I am once again able to build the docs as many times as I want.
When I run the pulp-docs build (or serve) for a second time, I get the following error:
FileExistsError: [Errno 17] File exists: '/tmp/pulp-docs-tmp/repo_sources/pulp-oci-images'
The issue occurs only if I have directories in the pulp-oci-images repository that were mounted as volumes to containers. The user and group ownership of those directories are not my user or group. Once I remove these directories I am once again able to build the docs as many times as I want.