Learn R Programming

babelwhale (version 1.2.0)

read_file: Read a file from a container

Description

Read a file from a container

Usage

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

Run this code
if (test_docker_installation()) {
  set_default_config(create_docker_config(), permanent = FALSE)
  read_file("alpine", "/etc/hosts")
}

Run the code above in your browser using DataLab