read_file: Read a file from a container

Description Usage Arguments Examples

View source: R/read_file.R

Description

Read a file from a container

Usage

1
read_file(container_id, path_container)

Arguments

container_id

The name of the container, usually the repository name on dockerhub.

path_container

The path of the file inside the container

Examples

1
2
3
4
if (test_docker_installation()) {
  set_default_config(create_docker_config(), permanent = FALSE)
  read_file("alpine", "/etc/hosts")
}

babelwhale documentation built on June 2, 2021, 5:07 p.m.