From 7358226c1e659de8734ff49aae9dce45e065d1cf Mon Sep 17 00:00:00 2001 From: zimbatm Date: Fri, 27 Dec 2013 15:18:40 +0000 Subject: [PATCH] From docker/docker - Makes sure the GPG key fingerprint is inlined in the doc everywhere. Instead of `curl $url | apt-get add -` use the ubuntu keyserver and a full fingerprint to retreive the key. This makes the distribution of the GPG key more secure an less likely to change even if 3rd party gains access to the packages repository. Docker-DCO-1.0-Signed-off-by: Jonas Pfenniger (github: zimbatm) --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a22bb5c..0c92af3 100755 --- a/install.sh +++ b/install.sh @@ -108,7 +108,7 @@ case "$lsb_dist" in fi ( set -x - $sh_c "$curl ${url}gpg | apt-key add -" + $sh_c "apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9" $sh_c "echo deb ${url}ubuntu docker main > /etc/apt/sources.list.d/docker.list" $sh_c 'sleep 3; apt-get update; apt-get install -y -q lxc-docker' )