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
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: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: