Home > other >  Apt - key command run on the shell but in Dockerfile failure
Apt - key command run on the shell but in Dockerfile failure

Time:11-23

Run the following command in the shell seems to be effective

Apt - key adv -- keyserver hkp://keyserver.ubuntu.com: 80-3 fa7e0328081bff6a14da29aa6a19b38d3d831ef recv - keys

But in Dockerfile execution failure, as shown in the following:

Warning: apt - key output should not be parsed (stdout is not a terminal)
Executing:/TMP/apt - key - gpghome. 1 ciuj3luop/GPG. 1. Sh -- keyserver hkp://keyserver.ubuntu.com: 80-3 fa7e0328081bff6a14da29aa6a19b38d3d831ef recv - keys
GPG: always open '/dev/tty: No to device the or address

Specific Dockerfile the RUN command in its: 8 image on execution, and the image is extracted from buildpack - deps: stretch - SCM

CodePudding user response:

Through the apt - key adv command add - no - tty to solve;
I don't know why this happens?

CodePudding user response:

reference 1st floor response:
by apt - key adv command add - no - tty to solve;
I don't know why this happens?
bad ah
  • Related