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

Commit e6f7c64

Browse files
committed
run -v should not remove configured volumes
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 396d449 commit e6f7c64

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)