For example, with the "ubuntu" config, the analogsea user can't do anything with docker:
d <- droplet_create('test', image = 'docker', cloud_config = 'ubuntu')
droplet_ssh(revdep, user="analogsea", "docker run --rm rocker/r-base R --version")
#2014/10/21 21:01:25 Post http:///var/run/docker.sock/v1.15/containers/create: dial unix /var/run/docker.sock: permission denied
# Error: ssh failed
These commands need to be run first:
droplet_ssh(user = "analogsea",
"sudo gpasswd -a analogsea docker",
"sudo service docker restart")
# Now this works
droplet_ssh(revdep, user="analogsea", "docker run --rm rocker/r-base R --version")
For example, with the
"ubuntu"
config, theanalogsea
user can't do anything with docker:These commands need to be run first: