support for image pull logs

This commit is contained in:
Brad Rydzewski
2019-10-24 23:36:35 -07:00
parent 4119ac2a6d
commit 1f9a599640
7 changed files with 106 additions and 9 deletions

View File

@@ -87,6 +87,7 @@ type Config struct {
Docker struct {
Config string `envconfig:"DRONE_DOCKER_CONFIG"`
Stream bool `envconfig:"DRONE_DOCKER_STREAM_PULL" default:"true"`
}
}

View File

@@ -78,7 +78,10 @@ func (c *daemonCommand) run(*kingpin.ParseContext) error {
),
)
engine, err := engine.NewEnv()
opts := engine.Opts{
HidePull: !config.Docker.Stream,
}
engine, err := engine.NewEnv(opts)
if err != nil {
logrus.WithError(err).
Fatalln("cannot load the docker engine")