Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ microcks start --name [name of you container/instance]`,
instance = &config.Instance{}
}

if instance.Status == "Running" {
fmt.Printf("Microcks instance with name %s is already running", name)
return
}


switch instance.Status {
case "Running":
fmt.Printf("Microcks instance with name %s is already running", name)
Expand Down Expand Up @@ -143,8 +139,8 @@ microcks start --name [name of you container/instance]`,
fmt.Printf("Microcks started successfully at %s\n", server)
},
}
startCmd.Flags().StringVar(&name, "name", "microcks", "name for your Microcks instance")
startCmd.Flags().StringVar(&hostPort, "port", "8585", "Host port to expose Microcks")
startCmd.Flags().StringVar(&name, "name", "microcks", "name for you microcks instance")
startCmd.Flags().StringVar(&hostPort, "port", "8585", "Host port to expose the Microcks instance (default: 8585)")
startCmd.Flags().StringVar(&imageName, "image", "quay.io/microcks/microcks-uber:latest-native", "image which will be used to create a container")
startCmd.Flags().BoolVar(&autoRemove, "rm", false, "mimic of '--rm' flag of Docker to automatically remove the container when it exits")
startCmd.Flags().StringVar(&driver, "driver", "docker", "use --driver to change driver from docker to podman")
Expand Down