Skip to content

Commit dff849f

Browse files
docs: image build clarifications/grammar (#2489)
I changed was build > was built and reorganized a few sentences to be more clear. Signed-off-by: InnovativeInventor <[email protected]>
1 parent 52fb276 commit dff849f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker/models/images.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ def build(self, **kwargs):
224224
Build an image and return it. Similar to the ``docker build``
225225
command. Either ``path`` or ``fileobj`` must be set.
226226
227-
If you have a tar file for the Docker build context (including a
228-
Dockerfile) already, pass a readable file-like object to ``fileobj``
229-
and also pass ``custom_context=True``. If the stream is compressed
230-
also, set ``encoding`` to the correct value (e.g ``gzip``).
227+
If you already have a tar file for the Docker build context (including a
228+
Dockerfile), pass a readable file-like object to ``fileobj``
229+
and also pass ``custom_context=True``. If the stream is also compressed,
230+
set ``encoding`` to the correct value (e.g ``gzip``).
231231
232232
If you want to get the raw output of the build, use the
233233
:py:meth:`~docker.api.build.BuildApiMixin.build` method in the
@@ -284,7 +284,7 @@ def build(self, **kwargs):
284284
285285
Returns:
286286
(tuple): The first item is the :py:class:`Image` object for the
287-
image that was build. The second item is a generator of the
287+
image that was built. The second item is a generator of the
288288
build logs as JSON-decoded objects.
289289
290290
Raises:

0 commit comments

Comments
 (0)