#3 – ‘repository name must be lowercase’ – Docker Toolbox error

Problem

When your run Docker Quickstart Terminal with a container that use volumes be careful on the path! If it returns the following error is due on the path passed to docker engine.

[email protected] MINGW64 ~/Google Drive/AAA UNI/AAA MAGISTRALE/test
$ docker run --rm -v $(pwd):/data ftt01/swmm5.1 2D
time="2017-04-27T16:14:26+01:00" level=info msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"
C:\Program Files\Docker Toolbox\docker.exe: Error parsing reference: "Drive/AAA" is not a valid repository/tag: repository name must be lowercase.
See C:\Program Files\Docker Toolbox\docker.exe run --help'.

The error is caused by the tree directory that is composed by directory’s name with spaces. This is a problem because bash interprets the path until the space, and then take the rest as options of docker run command. This is the reason because of it return an error connected with the command docker run itself.

Solution

The possible solutions are two:

  1. The simplest way is put the path between double quotation marks:
    $ docker run --rm -v "$(pwd)":/data ftt01/swmm5.1 2D
  2. Otherwise, change the names of directories in the path or move the files in another directory;

Using the solution Docker Quickstart Toolbox works perfectly.

[email protected] MINGW64 ~/Google Drive/AAA UNI/AAA MAGISTRALE/test
$ docker run --rm -v "$(pwd)":/data ftt01/swmm5.1 2D
time="2017-04-27T16:14:26+01:00" level=info msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"

... EPA-SWMM 5.1 (Build 5.1.010)

 o  Retrieving project data
 o  Simulation complete

.. EPA-SWMM completed in 7.00 seconds. 

If you have any problem with this procedure please comment this post or the main post. Thanks! GWH!

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

About Daniele Dalla Torre

I'm a Civil Engineering student but I love to learn everything about technology, from the basics to the new frontiers! Here my gpg public key!

One thought on “#3 – ‘repository name must be lowercase’ – Docker Toolbox error

Leave a Reply

Your email address will not be published.

*