CircleCI error when using docker --build-arg option

I’m passing a build option to my Dockerfile and it works fine locally. However Circle doesn’t seem to like it for some reason. When it gets to my build arg, it spits out this error:

ERROR: Need service name for --build-arg option

I cannot reproduce this locally and I’ve had no luck researching what this error means.

Reader will probably need to see the command you are using in order to help.

Good point, sorry. I have a build function that is running the code below:
local("docker-compose build --build-arg config_val=%s" % config_val)

This works fine locally, but Circle is throwing this error:

[localhost] local: docker-compose build --build-arg config_val=no
ERROR: Need service name for --build-arg option

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.