美文网首页
Ubuntu安装docker之旅

Ubuntu安装docker之旅

作者: 浪子柚青 | 来源:发表于2018-09-11 11:26 被阅读0次

    环境:

    VM 12 Pro

    Ubuntu 16.04

    前面步骤按照docker官网说明执行无误:

    https://docs.docker.com/install/linux/docker-ce/ubuntu/

    直到执行下一步:

    $ curl-fsSLhttps://download.docker.com/linux/ubuntu/gpg |sudo apt-key add -

    出现错误:

    curl: (35) gnutls_handshake() failed: Error in the pull function.

    gpg: no valid OpenPGP data found.

    解决办法,依次执行:

    sudo apt-get install ca-certificates

    wget --no-check-certificate https://download.docker.com/linux/ubuntu/gpg

    curl -fsSL https://download.docker.com/linux/ubuntu/gpg

    可以看到public key成功生成,再来

    sudo apt-key add gpg

    显示OK。

    剩下继续按照官方文档来

    相关文章

      网友评论

          本文标题:Ubuntu安装docker之旅

          本文链接:https://www.haomeiwen.com/subject/muoygftx.html