mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
c4d45b6a29
Remove volume stubs and use the experimental path as the only path. Signed-off-by: David Calavera <david.calavera@gmail.com>
19 lines
585 B
Go
19 lines
585 B
Go
// +build experimental
|
|
|
|
package runconfig
|
|
|
|
import flag "github.com/docker/docker/pkg/mflag"
|
|
|
|
type experimentalFlags struct {
|
|
flags map[string]interface{}
|
|
}
|
|
|
|
func attachExperimentalFlags(cmd *flag.FlagSet) *experimentalFlags {
|
|
flags := make(map[string]interface{})
|
|
flags["publish-service"] = cmd.String([]string{"-publish-service"}, "", "Publish this container as a service")
|
|
return &experimentalFlags{flags: flags}
|
|
}
|
|
|
|
func applyExperimentalFlags(exp *experimentalFlags, config *Config, hostConfig *HostConfig) {
|
|
config.PublishService = *(exp.flags["publish-service"]).(*string)
|
|
}
|