Interactive command in Dockerfile

前端 未结 3 548
梦毁少年i
梦毁少年i 2020-12-09 17:34

I\'m trying to automate a creation of a development Docker image using docker build command with appropriate Dockerfile. One of the scripts that I

3条回答
  •  天涯浪人
    2020-12-09 18:36

    The output of RUN commands is shown in your terminal during the build. The Docker build process is completely non-interactive, so you must find some way of either auto-accepting the terms (almost every piece of software allows this, think apt-get install -y...) or using some shell wizardry to echo the acceptance back to the process or whatever (Expect maybe?).

提交回复
热议问题