Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 8fd0419

Browse files
authored
Merge pull request #1914 from ndeloof/run_volumes
run -v should not remove configured volumes
2 parents 2e99f80 + e6f7c64 commit 8fd0419

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cmd/compose/run.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ func (opts runOptions) apply(project *types.Project) error {
7272
}
7373
}
7474
if len(opts.volumes) > 0 {
75-
target.Volumes = []types.ServiceVolumeConfig{}
7675
for _, v := range opts.volumes {
7776
volume, err := loader.ParseVolume(v)
7877
if err != nil {

0 commit comments

Comments
 (0)