I tried to build docker image via docker api with passing buildargs
parameter
My try:
curl -X POST -H "Content-Type:application/tar" —unix-socket /var/run/docker.sock —data-binary "@Dockerfile.tar.gz" 'http://localhost/build?buildargs={"TIMESTAMP":"time"}'
But bad response:
{"message":"error reading build args: invalid character ':' after top-level value"}
If I remove the buildargs
parameter, it works fine.