code: func DialConn(cmd *cobra.Command) (*grpc.ClientConn, error) {
  	addr, err := cmd.Flags().GetString("socket")
  	if err != nil {
  		return nil, err
  	}
  
  	opts := []grpc.DialOption{}
  	insecureCreds := credentials.NewTLS(&tls.Config{InsecureSkipVerify: true})
  	opts = append(opts, grpc.WithTransportCredentials(insecureCreds))
  	opts = append(opts, grpc.WithDialer(
  		func(addr string, timeout time.Duration) (net.Conn, error) {
  			return xnet.DialTimeoutLocal(addr, timeout)
  		}))
  	conn, err := grpc.Dial(addr, opts...)
  	if err != nil {
  		return nil, err
  	}
  
  	return conn, nil
  }
docs: // DialConn establishes a connection to SwarmKit.