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 {
case server.ImageVolumesMkdir:
case server.ImageVolumesIgnore:
case server.ImageVolumesBind:
default:
return fmt.Errorf("Unrecognized image volume type specified")

View File

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