Skip to content

Commit

Permalink
docs: image build clarifications/grammar (#2489)
Browse files Browse the repository at this point in the history
I changed was build > was built and reorganized a few sentences to be more clear.

Signed-off-by: InnovativeInventor <[email protected]>
  • Loading branch information
InnovativeInventor committed Jul 29, 2022
1 parent 52fb276 commit dff849f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/models/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ def build(self, **kwargs):
Build an image and return it. Similar to the ``docker build``
command. Either ``path`` or ``fileobj`` must be set.
If you have a tar file for the Docker build context (including a
Dockerfile) already, pass a readable file-like object to ``fileobj``
and also pass ``custom_context=True``. If the stream is compressed
also, set ``encoding`` to the correct value (e.g ``gzip``).
If you already have a tar file for the Docker build context (including a
Dockerfile), pass a readable file-like object to ``fileobj``
and also pass ``custom_context=True``. If the stream is also compressed,
set ``encoding`` to the correct value (e.g ``gzip``).
If you want to get the raw output of the build, use the
:py:meth:`~docker.api.build.BuildApiMixin.build` method in the
Expand Down Expand Up @@ -284,7 +284,7 @@ def build(self, **kwargs):
Returns:
(tuple): The first item is the :py:class:`Image` object for the
image that was build. The second item is a generator of the
image that was built. The second item is a generator of the
build logs as JSON-decoded objects.
Raises:
Expand Down

0 comments on commit dff849f

Please sign in to comment.