Skip to content

vig01_plumber_deploy.Rmd Line 93 issue? #18

Description

@Emily-Chai

'# build image 'bos_rf'
call_docker("build -t bos_rf .")

I got the following error

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
Error in processx::run(dockercmd, realcmd, ..., echo = echo) :
System command 'sudo' failed, exit status: 1, stdout & stderr were printed
Type .Last.error.trace to see where the error occurred

Activity

  1. hongooi73 commented on Jan 25, 2022

    @hongooi73
    Collaborator

    Where are you running R? Is this on Databricks, Azure Machine Learning or some other hosted platform?

  2. Emily-Chai commented on Jan 25, 2022

    @Emily-Chai
    Author

    I only ran it on RStudio on my laptop.

  3. hongooi73 commented on Jan 25, 2022

    @hongooi73
    Collaborator

    You may be able to bypass the prompt by calling sudo manually in the terminal, before running the script. Eg a simple sudo ls should do.

  4. Emily-Chai commented on Jan 25, 2022

    @Emily-Chai
    Author

    I still have the same issue after doing what you recommended. I think I will look into how to "use the -S option to read from standard input or configure an askpass helper". Thank you.

  5. saraemoore commented on Nov 14, 2023

    @saraemoore

    I'm also running into this error when attempting to connect to an existing ACR from my laptop (running macOS). The issue seems to stem from the assumption in call_docker() that any OS not Windows will need to sudo docker ... instead of just docker .... I expect this to typically only be true on Linux, and even then, only some of the time. Would it be possible to make a change to this function so that either 1) an argument is passed in indicating whether sudo is necessary or 2) at least macOS is allowed to also pass through without sudo prepended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions