mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-30 17:47:28 +01:00
Moves version up
This commit is contained in:
3
main.go
3
main.go
@@ -64,6 +64,7 @@ func createRoutes(base string, h *handler) *mux.Router {
|
||||
}
|
||||
|
||||
func main() {
|
||||
log.Infof("Dozzle version %s", version)
|
||||
dockerClient := docker.NewClient()
|
||||
_, err := dockerClient.ListContainers()
|
||||
|
||||
@@ -75,8 +76,6 @@ func main() {
|
||||
r := createRoutes(base, &handler{dockerClient, box})
|
||||
srv := &http.Server{Addr: addr, Handler: r}
|
||||
|
||||
log.Infof("Dozzle version %s", version)
|
||||
|
||||
go func() {
|
||||
log.Infof("Accepting connections on %s", srv.Addr)
|
||||
if err := srv.ListenAndServe(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user