Talking to 'Docker' and 'Singularity' Containers

Provides a unified interface to interact with 'docker' and 'singularity' containers. You can execute a command inside a container, mount a volume or copy a file.


babelwhale: talk to docker and singularity from R

R-CMD-check CRAN_Status_Badge Codecov testcoverage

Specify docker or singularity

library(babelwhale)
config <- create_docker_config()
set_default_config(config)

Run a command in a container

run("alpine", "echo", c("hello"))
## $status
## [1] 0
## 
## $stdout
## [1] "hello\n"
## 
## $stderr
## [1] ""
## 
## $timeout
## [1] FALSE

Get a file from a container

read_file("alpine", "/etc/alpine-release")
## [1] "3.16.2"

Latest changes

Check out news(package = "dynutils") or NEWS.md for a full list of changes.

Recent changes in babelwhale 1.1.0

  • NEW FUNCTIONALITY run_auto_mount(): Added helper function for letting babelwhale figure out which directories to mount automatically (#26, thanks @joelnitta!).

Recent changes in babelwhale 1.0.3

  • BUG FIX detect_backend(): Print helpful message when neither docker or singularity are installed (Thanks @KforKuma).

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("babelwhale")

1.2.0 by Robrecht Cannoodt, 3 years ago


https://github.com/dynverse/babelwhale


Report a bug at https://github.com/dynverse/babelwhale/issues


Browse source code at https://github.com/cran/babelwhale


Authors: Robrecht Cannoodt [aut, cre] , rcannood) , Wouter Saelens [aut] , zouter) , Joel Nitta [aut] , joelnitta)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports crayon, dplyr, fs, dynutils, processx, purrr, utils, digest, glue

Suggests covr, testthat

System requirements: Docker and/or Singularity (>=3.0)


Imported by dynwrap.


See at CRAN