mirror of
https://github.com/docker/docker-install.git
synced 2026-11-20 10:03:11 +03:00
Fix non-interactive installation
gpg prompt for overwriting the keyring file - adding `--yes` will fix it ``` You may press Ctrl+C now to abort this script. + sleep 20 + sh -c apt-get update -qq >/dev/null + sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null + sh -c curl -fsSL "https://download.docker.com/linux/debian/gpg" | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg File '/usr/share/keyrings/docker-archive-keyring.gpg' exists. Overwrite? (y/N) ``` Signed-off-by: Mohamed Meabed <mo.meabed@gmail.com>
This commit is contained in:
1 parent
0e685c6ac0
commit
a49ecdef76
1 file changed
+1
-1
+1
-1
@@ -400,7 +400,7 @@ do_install() {
|
||||
fi
|
||||
$sh_c 'apt-get update -qq >/dev/null'
|
||||
$sh_c "DEBIAN_FRONTEND=noninteractive apt-get install -y -qq $pre_reqs >/dev/null"
|
||||
$sh_c "curl -fsSL \"$DOWNLOAD_URL/linux/$lsb_dist/gpg\" | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg"
|
||||
$sh_c "curl -fsSL \"$DOWNLOAD_URL/linux/$lsb_dist/gpg\" | gpg --dearmor --yes -o /usr/share/keyrings/docker-archive-keyring.gpg"
|
||||
$sh_c "echo \"$apt_repo\" > /etc/apt/sources.list.d/docker.list"
|
||||
$sh_c 'apt-get update -qq >/dev/null'
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user