I just grabbed circleci-builder to test my circle.yml locally, and the first time I run it I get this error:
$ circleci-builder build
/usr/bin/docker-current: Error parsing reference: "circleci/picard@sha256:f991ae3fb584cf37224767def59d512600b2df57d9d83ac6e40c95ae5aa005f8:" is not a valid repository/tag.
See '/usr/bin/docker-current run --help'.
This is on Fedora 25, Docker version 1.12.6, build ae7d637/1.12.6. I’m not sure what other info will be useful, please let me know.
Looks like I had some garbage in my ~/.circleci/*_picard_digest files.
$ cat ~/.circleci/*
sha256:f991ae3fb584cf37224767def59d512600b2df57d9d83ac6e40c95ae5aa005f8: Pulling from docker.io/circleci/picard sha256:f991ae3fb584cf37224767def59d512600b2df57d9d83ac6e40c95ae5aa005f8
sha256:f991ae3fb584cf37224767def59d512600b2df57d9d83ac6e40c95ae5aa005f8: Pulling from docker.io/circleci/picard sha256:f991ae3fb584cf37224767def59d512600b2df57d9d83ac6e40c95ae5aa005f8
I stripped out everything from the : Pulling from, and the command worked. Looks like my version of docker is outputting extra stuff that the script isn’t handling.
The problem here is probably that your grep command by default uses colors so control characters are ending up in the digest string. For the time being, you can fix it by editing the circleci script to change the grep line in pull_latest_image to include --color=never so that (in version 0.0.2885-bff1cc5) it reads: