Add comment on native build and fix typo

Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
This commit is contained in:
Ulysses Souza 2019-08-29 16:29:09 +02:00
parent 719a1b0581
commit 9d7ad3bac1
2 changed files with 5 additions and 1 deletions

View File

@ -266,7 +266,7 @@ class TopLevelCommand(object):
--build-arg key=val Set build-time variables for services.
--compress Compress the build context using gzip.
--force-rm Always remove intermediate containers.
-m, --memory MEM Sets memory limit for the build container.
-m, --memory MEM Set memory limit for the build container.
--no-cache Do not use cache when building the image.
--no-rm Do not remove intermediate containers after a successful build.
--parallel Build images in parallel.

View File

@ -1810,6 +1810,10 @@ class _CLIBuilder(object):
image_id = line.split(":")[1].strip()
os.remove(iidfile)
# In case of `DOCKER_BUILDKIT=1`
# there is no success message already present in the output.
# Since that's the way `Service::build` gets the `image_id`
# it has to be added `manually`
if not appear:
yield json.dumps({"stream": "{}{}\n".format(magic_word, image_id)})