Skip to content

-name does not strip quotes #6142

@zealws

Description

@zealws

When a -name is specified to a quoted value (e.g. -name="asdf") the docker container fails to start and gives the following error message:

Invalid container name ("asdf"), only [a-zA-Z0-9_.-] are allowed

It took me a while to realize the quotes in the log message were actually the quotes I was providing it.

I feel like it should strip out the quotes in the argument, or at the very least provide a more helpful error message. It took 20 minutes of experimenting to figure this out.

My docker version:

$ docker -v
Docker version 0.10.0, build dc9c28f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions