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 <zimbatm@zimbatm.com> (github: zimbatm)
This commit is contained in:
zimbatm authored and Eli Uriegas committed 2017-06-16 11:53:08 -07:00
1 parent 743a791296
commit 7358226c1e
1 file changed
+1 -1
+1 -1
View File
@@ -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'
)