Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is cachefrom a string or a JSON array? #21836

Open
1 task done
cowwoc opened this issue Jan 16, 2025 · 2 comments
Open
1 task done

Is cachefrom a string or a JSON array? #21836

cowwoc opened this issue Jan 16, 2025 · 2 comments
Labels
status/triage Needs triage

Comments

@cowwoc
Copy link

cowwoc commented Jan 16, 2025

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

https://docs.docker.com/reference/api/engine/version/v1.47/#tag/Image/operation/ImageBuild states that the "cachefrom" property is of type "string" but the description reads "JSON array of images used for build cache resolution."

So, is it a string or a JSON array? :)

Location

https://docs.docker.com/reference/api/engine/version/v1.47/#tag/Image/operation/ImageBuild

Suggestion

No response

@cowwoc cowwoc added the status/triage Needs triage label Jan 16, 2025
@cowwoc
Copy link
Author

cowwoc commented Jan 16, 2025

Ah, I just noticed that cachefrom is a query parameter. Does this mean that the parameter value should be the string representation of a JSON array? As in: http://example.com/build?cachefrom=%5B%22image1%22%2C%20%22image2%22%5D

@cowwoc
Copy link
Author

cowwoc commented Jan 16, 2025

I just tested it. It expected the string representation of a JSON array as I guessed above. I am okay with closing this issue if you are too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage Needs triage
Projects
None yet
Development

No branches or pull requests

1 participant