Dockerfile
objectThe method is implemented based on stevedore and includes some logging and defaults.
If a Dockerfile
object is given, it is saved as a Dockerfile to a temporary directory.
docker_build(x, tag, ...)# S3 method for character
docker_build(x, tag = strsplit(tempfile(pattern =
"containerit_", tmpdir = ""), "/")[[1]][2],
the_dockerfile = "Dockerfile", ...)
# S3 method for Dockerfile
docker_build(x, tag = strsplit(tempfile(pattern =
"containerit_test_", tmpdir = ""), "/")[[1]][2], use_workdir = FALSE,
clean_up = TRUE, ...)
the path to a directory with a valid Dockerfile
(i.e. the context
), or a Dockerfile
object
Name of the new image to be created
Other arguments, passed to docker_client
Name of the Dockerfile
, defaults to "Dockerfile"
if a Dockerfile
object is given, this can set the context to the current working directory (if TRUE
) or a temporary directory (default)
if use_workdir
, then delete the Dockerfile file in the working directory, otherwise remove the Dockerfile created as a temporary file
The id of the image