Browse Source

Merge pull request #1832 from dotcloud/26-default_r_flag

Autorestart containers by default
Michael Crosby 11 years ago
parent
commit
ad4b09cdb8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docker/docker.go

+ 1 - 1
docker/docker.go

@@ -29,7 +29,7 @@ func main() {
 	flVersion := flag.Bool("v", false, "Print version information and quit")
 	flDaemon := flag.Bool("d", false, "Daemon mode")
 	flDebug := flag.Bool("D", false, "Debug mode")
-	flAutoRestart := flag.Bool("r", false, "Restart previously running containers")
+	flAutoRestart := flag.Bool("r", true, "Restart previously running containers")
 	bridgeName := flag.String("b", "", "Attach containers to a pre-existing network bridge. Use 'none' to disable container networking")
 	pidfile := flag.String("p", "/var/run/docker.pid", "File containing process PID")
 	flGraphPath := flag.String("g", "/var/lib/docker", "Path to graph storage base dir.")