diff --git a/.github/workflows/check-links-in-prod.yaml b/.github/workflows/check-links-in-prod.yaml index 19af19a5b3..bd4f8c7526 100644 --- a/.github/workflows/check-links-in-prod.yaml +++ b/.github/workflows/check-links-in-prod.yaml @@ -36,7 +36,7 @@ jobs: for i, section in enumerate(sections): # call docker run command - cmd = ['docker', 'run', '--name', 'linkchecker', + cmd = ['docker', 'run', '--rm', '--name', 'linkchecker', '--volume', f'{pwd}/output:/workdir', '--workdir', '/workdir', 'ghcr.io/linkchecker/linkchecker:latest', f'https://docs.giantswarm.io/{section}/',