Docker Community Forums

Share and learn in the Docker community.

'target' option of 'image build' command missed in Swagger v1.36

(Allan Sun) #1

With the multi-stage feature available, I can use ‘image build --target=’ to build a specific stage of my Dockerfile.

However when try to manipulate the daemon with API generated from current swagger version, I received error prompting ‘target’ is not a valid option.

I checked through the swagger file and can confirm it does not exit in the file, is it simply missed?

(Allan Sun) #2

I can see it is a valid option in the official client :