Skip to content

Commit

Permalink
add '--rm' to docker command to clean up container after use (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanreid-toast authored Mar 19, 2022
1 parent dacc2ce commit 2ca9712
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/com/parmet/buf/gradle/DockerSupport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private fun Project.resolveConfig(ext: BufExtension): File? =
private fun Project.baseDockerArgs(ext: BufExtension) =
listOf(
"run",
"--rm",
"--volume", "$projectDir:/workspace:Z",
"--workdir", "/workspace/build/bufbuild",
"bufbuild/buf:${ext.toolVersion}"
Expand Down

0 comments on commit 2ca9712

Please sign in to comment.