Skip to content

LABEL com.example.version.is-beta #16526

Description

@progtologist

docker version:

Client:
 Version:      1.8.2
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   0a8c2e3
 Built:        Thu Sep 10 19:19:00 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.8.2
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   0a8c2e3
 Built:        Thu Sep 10 19:19:00 UTC 2015
 OS/Arch:      linux/amd64

docker info:

Containers: 408
Images: 121
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 937
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.16.0-49-generic
Operating System: Ubuntu 14.04.3 LTS
CPUs: 8
Total Memory: 11.73 GiB
Name: mobile-lab
ID: MNKA:XEBM:UGJ7:HGT4:MN5L:WMCP:ZYIL:7FZZ:K4S2:6Q7I:3K7S:XCTG
WARNING: No swap limit support

uname -a:

Linux mobile-lab 3.16.0-49-generic #65~14.04.1-Ubuntu SMP Wed Sep 9 10:03:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Steps to reproduce:

  1. Create a basic dockerfile with only one LABEL layer
FROM ubuntu
LABEL com.example.version.is-beta
  1. Try to build this container

Results received:

Error response from daemon: Syntax error - can't find = in "com.example.version.is-beta". Must be of the form: name=value

Expected results:
The container is built correctly.

Additional info:
In the official userguide, it is mentioned that "The LABEL instruction adds a label to your image, optionally setting its value. ". There are examples in the same context, showing this functionality.

However that is not the case in the actual program, as shown in line_parsers.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions