Skip to content

Commit

Permalink
Add Z flag to docker bind mount
Browse files Browse the repository at this point in the history
Otherwise the code generator fails to write to `/local/` due to invalid SELinux labels.
  • Loading branch information
dcermak committed Feb 9, 2023
1 parent 09ea173 commit beba927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ To generate code with this image, you'll need to mount a local location as a vol
Example:
```sh
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate \
docker run --rm -v ${PWD}:/local:Z swaggerapi/swagger-codegen-cli generate \
-i https://petstore.swagger.io/v2/swagger.json \
-l go \
-o /local/out/go
Expand Down

0 comments on commit beba927

Please sign in to comment.