Clickable issues found and resolved, Got permission denied while trying to connect to the Docker and docker: invalid reference format: repository name must be lowercase



  • Hi all,

    Just thought I'd share two speed bumps I ran into when firing up clickable for the first time.

    The first one involves permission rights missing for the docker program that clickable uses.
    Running "clickable --desktop" (probably other options as well that try to start the program built).
    An exception is thrown from docker and clickable says something about failing and [docker, ps]
    I found a solution which elevates permissions of the user running docker.
    in the terminal, enter 'sudo usermod -a -G docker $USER' and log off and then login (perhaps even reboot). I found this solution at https://techoverflow.net/2017/03/01/solving-docker-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket/

    The second problem I encountered was also connected to the docker. You cant user capital letters for the images the docker run. Which means you cant name your projects with upper-letters (which i did).
    You will get an error message that looks something like this:
    clickable --desktop
    Skipping kill, running in desktop mode
    docker: invalid reference format: repository name must be lowercase.
    See 'docker run --help'.
    Command '['docker', 'run', '-v', '/home/jimmie/Documents/Code', 'projects/clickableTest/HelloWorld:/home/jimmie/Documents/Code', 'projects/clickableTest/HelloWorld', '-w', '/home/jimmie/Documents/Code', 'projects/clickableTest/HelloWorld/build', '-u', '1000', '--rm', '-i', 'clickable/ubuntu-sdk:15.04-amd64', 'bash', '-c', 'cmake /home/jimmie/Documents/Code projects/clickableTest/HelloWorld']' returned non-zero exit status 125
    The solution for me was just renaming the "HelloWorld" project to "helloworld". Im not sure if there is a problem with the folders contaning upper-cases too (I dont think so but I did change to a path with only lower letter cases and then everything was fine).
    I found an issue like mine with a solution at: https://github.com/moby/moby/issues/25599

    These are probably newcomers problems and because Im not familiar with the docker tool that clickable use. And the clickable tool does give you good hints when something fails so it was'nt all that hard to figure out myself. But I thought I'd share it here if someone else runs in the same issue and is stomped by it.

    Cheers
    /Jimmie


Log in to reply
 

Looks like your connection to UBports Forum was lost, please wait while we try to reconnect.