func IsErrNodeNotFound(err error) bool {
	_, ok := err.(nodeNotFoundError)
	return ok
}
IsErrNodeNotFound returns true if the error is caused
when a node is not found.
package client
import (
	"fmt"
	"github.com/docker/docker/api/types/versions"
	"github.com/pkg/errors"
)
type errConnectionFailed struct {
	host string
}
func (err errConnectionFailed) Error() string {
	if err.host == "" {
		return "Cannot connect to the Docker daemon. Is the docker daemon running on this host?"
	}
	return fmt.Sprintf("Cannot connect to the Docker daemon at %s. Is the docker daemon running?", err.host)
}
func IsErrConnectionFailed(err error) bool {
	_, ok := errors.Cause(err).(errConnectionFailed)
	return ok
}
func ErrorConnectionFailed(host string) error {
	return errConnectionFailed{host: host}
}
type notFound interface {
	error
	NotFound() bool  
}
func IsErrNotFound(err error) bool {
	te, ok := err.(notFound)
	return ok && te.NotFound()
}
type imageNotFoundError struct {
	imageID string
}
func (e imageNotFoundError) NotFound() bool {
	return true
}
func (e imageNotFoundError) Error() string {
	return fmt.Sprintf("Error: No such image: %s", e.imageID)
}
func IsErrImageNotFound(err error) bool {
	return IsErrNotFound(err)
}
type containerNotFoundError struct {
	containerID string
}
func (e containerNotFoundError) NotFound() bool {
	return true
}
func (e containerNotFoundError) Error() string {
	return fmt.Sprintf("Error: No such container: %s", e.containerID)
}
func IsErrContainerNotFound(err error) bool {
	return IsErrNotFound(err)
}
type networkNotFoundError struct {
	networkID string
}
func (e networkNotFoundError) NotFound() bool {
	return true
}
func (e networkNotFoundError) Error() string {
	return fmt.Sprintf("Error: No such network: %s", e.networkID)
}
func IsErrNetworkNotFound(err error) bool {
	return IsErrNotFound(err)
}
type volumeNotFoundError struct {
	volumeID string
}
func (e volumeNotFoundError) NotFound() bool {
	return true
}
func (e volumeNotFoundError) Error() string {
	return fmt.Sprintf("Error: No such volume: %s", e.volumeID)
}
func IsErrVolumeNotFound(err error) bool {
	return IsErrNotFound(err)
}
type unauthorizedError struct {
	cause error
}
func (u unauthorizedError) Error() string {
	return u.cause.Error()
}
func IsErrUnauthorized(err error) bool {
	_, ok := err.(unauthorizedError)
	return ok
}
type nodeNotFoundError struct {
	nodeID string
}
func (e nodeNotFoundError) Error() string {
	return fmt.Sprintf("Error: No such node: %s", e.nodeID)
}
func (e nodeNotFoundError) NotFound() bool {
	return true
}