github.com/circular-dark/docker@v1.7.0/daemon/volumes_stubs.go (about)

     1  // +build !experimental
     2  
     3  package daemon
     4  
     5  import (
     6  	"fmt"
     7  	"path/filepath"
     8  
     9  	"github.com/docker/docker/volume"
    10  	"github.com/docker/docker/volume/drivers"
    11  )
    12  
    13  func getVolumeDriver(_ string) (volume.Driver, error) {
    14  	return volumedrivers.Lookup(volume.DefaultDriverName)
    15  }
    16  
    17  func parseVolumeSource(spec string) (string, string, error) {
    18  	if !filepath.IsAbs(spec) {
    19  		return "", "", fmt.Errorf("cannot bind mount volume: %s volume paths must be absolute.", spec)
    20  	}
    21  
    22  	return "", spec, nil
    23  }