Minimal R environment with SSH client and ability to mount keys from the host
10K+
Dockerfile to install SSH client and bindfs on the top of rocker/r-base, resulting in a minimal R environment to be able to SSH remote machines with the private keys mounted from the host.
This approach resolves the following two issues:
This image does the following things to overcome these issues:
bindfs to be able to remount directories and files with updated permissions.ssh and .ssh-external directories in the docker home folder/etc/fstab to mount /home/docker/.ssh-external to the main SSH key folder with the right permissionsPlease note that, unfortunately, it's not trivial to use this setup. You have to:
/home/docker/.ssh-external folder, e.g.:docker run \
-v '/home/username/.ssh/id_rsa:/home/docker/.ssh-external/id_rsa:ro' \
--rm -ti cardcorp/r-ssh
mount -o nonempty -a
Alternatively, you can start R as docker after re-mounting the keys by:
docker run \
-v '/home/username/.ssh/id_rsa:/home/docker/.ssh-external/id_rsa:ro' \
--rm -ti cardcorp/r-ssh \
sh -c "mount -o nonempty -a;su docker -c \"R --vanilla\""
Content type
Image
Digest
sha256:694dea324…
Size
394.3 MB
Last updated
11 months ago
docker pull cardcorp/r-ssh