Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11631

Disable user input with `apt-get install -y r-base`when build a dockerfile

$
0
0

When building a docker file, even with the ENV DEDIAN_FRONTEND=noninteractive, apt-get install r-base still prompts the following user inputs that prevent the automatic build process. Is there any way to disable these user inputs? Or, setting them through a config file?Geographic areacity or regionThe minimal Dockerfile is

# Use an official Ubuntu runtime as a parent imageFROM ubuntu:24.04# Set environment variable to avoid interactive promptsENV DEBIAN_FRONTEND=noninteractive# Update the package lists and install a package without promptsRUN apt-get update \&& apt-get install -y r-base

I tried on macOS(m1) with Docker version 25.0.1 and macOS(intel) with Docker version 20.10.17.


Viewing all articles
Browse latest Browse all 11631

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>