@@ -78,7 +78,7 @@ func NewCreateCommand(dockerCli command.Cli) *cobra.Command {
7878 flags .StringVar (& options .name , "name" , "" , "Assign a name to the container" )
7979 flags .StringVar (& options .pull , "pull" , PullImageMissing , `Pull image before creating ("` + PullImageAlways + `", "|` + PullImageMissing + `", "` + PullImageNever + `")` )
8080 flags .BoolVarP (& options .quiet , "quiet" , "q" , false , "Suppress the pull output" )
81- flags .BoolVarP (& options .useDockerSocket , "use-docker -socket" , "" , false , "Bind mount docker socket and required auth" )
81+ flags .BoolVarP (& options .useDockerSocket , "use-api -socket" , "" , false , "Bind mount Docker API socket and required auth" )
8282
8383 // Add an explicit help that doesn't have a `-h` to prevent the conflict
8484 // with hostname
@@ -256,7 +256,7 @@ func createContainer(ctx context.Context, dockerCli command.Cli, containerCfg *c
256256
257257 socket := dockerCli .DockerEndpoint ().Host
258258 if ! strings .HasPrefix (socket , "unix://" ) {
259- return "" , fmt .Errorf ("flag --use-docker -socket can only be used with unix sockets: docker endpoint %s incompatible" , socket )
259+ return "" , fmt .Errorf ("flag --use-api -socket can only be used with unix sockets: docker endpoint %s incompatible" , socket )
260260 }
261261 socket = strings .TrimPrefix (socket , "unix://" ) // should we confirm absolute path?
262262
0 commit comments