Skip to content

Error message "invalid reference format" #18093

@askb

Description

@askb

When the repo/image input provided format is incorrect, should the to returned error message be more meaningful ? Here docker daemon is configured with the local registry, however both cases have typo in <repo:tag> input.

Actual output:

# docker pull 192.168.1.34:5000/ubuntu:14:04
invalid reference format

# docker pull ubuntu:14:04
invalid reference format

Expected output: "Invalid repository or tag name specified: invalid reference format"

root@018e57a77eb2:/go/src/github.com/docker/docker/mytestimage# uname -a
Linux 018e57a77eb2 3.13.0-68-generic #111-Ubuntu SMP Fri Nov 6 18:17:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
root@018e57a77eb2:/go/src/github.com/docker/docker/mytestimage# docker info
Containers: 1
Images: 7
Server Version: 1.10.0-dev
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 9
 Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Plugins: 
 Volume: local
 Network: host bridge null
Kernel Version: 3.13.0-68-generic
Operating System: Ubuntu 14.04.3 LTS (containerized)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.689 GiB
Name: 018e57a77eb2
ID: DDLV:CEH4:WDPY:HD4J:UKZY:42FB:B6QG:RAT4:NAKF:2TUW:BUJS:56YK
Debug mode (server): true
 File Descriptors: 12
 Goroutines: 24
 System Time: 2015-11-19T13:35:02.536650693Z
 EventsListeners: 0
 Init SHA1: 
 Init Path: /usr/bin/docker
 Docker Root Dir: /var/lib/docker
WARNING: No swap limit support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
root@018e57a77eb2:/go/src/github.com/docker/docker/mytestimage# docker version
Client:
 Version:      1.10.0-dev
 API version:  1.22
 Go version:   go1.5.1
 Git commit:   2f6e752
 Built:        Thu Nov 19 13:07:36 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.10.0-dev
 API version:  1.22
 Go version:   go1.5.1
 Git commit:   2f6e752
 Built:        Thu Nov 19 13:07:36 UTC 2015
 OS/Arch:      linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/distributionImage Distributionkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions