ソースを参照

docker daemon: show info about the server

For combing through logs, have an intro line with information about the
running instance of the docker daemon.

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)
Vincent Batts 11 年 前
コミット
cea43f8a2d
1 ファイル変更7 行追加0 行削除
  1. 7 0
      docker/docker.go

+ 7 - 0
docker/docker.go

@@ -157,6 +157,13 @@ func main() {
 			}
 		}()
 
+		// TODO actually have a resolved graphdriver to show?
+		log.Printf("docker daemon: %s %s; execdriver: %s; graphdriver: %s",
+			dockerversion.VERSION,
+			dockerversion.GITCOMMIT,
+			*flExecDriver,
+			*flGraphDriver)
+
 		// Serve api
 		job := eng.Job("serveapi", flHosts.GetAll()...)
 		job.SetenvBool("Logging", true)