From 49d560e1b027d51800da5a4f557570c0d287a1c5 Mon Sep 17 00:00:00 2001 From: vyasgun Date: Thu, 23 Feb 2023 09:18:51 +0530 Subject: [PATCH] docs: context is not optional for build [NO NEW TESTS NEEDED] Closes: https://github.com/containers/podman/issues/17568 Signed-off-by: vyasgun --- docs/source/markdown/podman-build.1.md.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/markdown/podman-build.1.md.in b/docs/source/markdown/podman-build.1.md.in index aece03081f..c8d65bab6a 100644 --- a/docs/source/markdown/podman-build.1.md.in +++ b/docs/source/markdown/podman-build.1.md.in @@ -18,8 +18,8 @@ either 'Containerfile' or 'Dockerfile'. The build context directory can be specified as the http(s) URL of an archive, git repository or Containerfile. -If no context directory is specified, then Podman will assume the current -working directory as the build context, which should contain the Containerfile. +When invoked with `-f` and a path to a Containerfile, with no explicit CONTEXT +directory, Podman will use the Containerfile's parent directory as its build context. Containerfiles ending with a ".in" suffix will be preprocessed via CPP(1). This can be useful to decompose Containerfiles into several reusable parts that can