Add config for ImageVolumesBind option

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2017-07-14 15:31:50 -07:00
parent 96ebf829c9
commit 7443263bd6
2 changed files with 3 additions and 0 deletions

View file

@ -26,6 +26,7 @@ func validateConfig(config *server.Config) error {
switch config.ImageVolumes { switch config.ImageVolumes {
case server.ImageVolumesMkdir: case server.ImageVolumesMkdir:
case server.ImageVolumesIgnore: case server.ImageVolumesIgnore:
case server.ImageVolumesBind:
default: default:
return fmt.Errorf("Unrecognized image volume type specified") return fmt.Errorf("Unrecognized image volume type specified")

View file

@ -41,6 +41,8 @@ const (
ImageVolumesMkdir ImageVolumesType = "mkdir" ImageVolumesMkdir ImageVolumesType = "mkdir"
// ImageVolumesIgnore option is for ignoring image volumes altogether // ImageVolumesIgnore option is for ignoring image volumes altogether
ImageVolumesIgnore ImageVolumesType = "ignore" ImageVolumesIgnore ImageVolumesType = "ignore"
// ImageVolumesBind option is for using bind mounted volumes
ImageVolumesBind ImageVolumesType = "bind"
) )
const ( const (