diff --git a/pkg/compose/apiSocket.go b/pkg/compose/apiSocket.go index 52e702a50..6b8c8ba53 100644 --- a/pkg/compose/apiSocket.go +++ b/pkg/compose/apiSocket.go @@ -64,6 +64,9 @@ func (s *composeService) useAPISocket(project *types.Project) (*types.Project, e } for name, service := range project.Services { + if !service.UseAPISocket { + continue + } service.Volumes = append(service.Volumes, types.ServiceVolumeConfig{ Type: types.VolumeTypeBind, Source: socket,