How to silent install Postgresql in Ubuntu via. Dockerfile?

前端 未结 1 1893
没有蜡笔的小新
没有蜡笔的小新 2021-01-14 11:24

I have the following docker file, and I am using the command docker build -t demo:v1 . to build the image.

FROM ubuntu:18.04
WORKDIR /app
RUN ap         


        
1条回答
  •  心在旅途
    2021-01-14 11:37

    add this to your Dockerfile

    ARG DEBIAN_FRONTEND=noninteractive
    

    before installing postgresql

    and I think you may want to use apt-get instead of apt to avoid this warning:

    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

    0 讨论(0)
提交回复
热议问题