docker command not found even though installed with apt-get

前端 未结 4 1242
有刺的猬
有刺的猬 2020-12-22 17:01

Adding this for reference for others because it would have saved me 10 minutes if such an answer existed.


I tried installing Docker using ubuntu 14.0LTS virtua

4条回答
  •  萌比男神i
    2020-12-22 17:22

    SET UP THE REPOSITORY

    For Ubuntu 14.04/16.04/16.10/17.04:

    sudo add-apt-repository "deb [arch=amd64] \
         https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    

    For Ubuntu 17.10:

    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable"
    

    Add Docker’s official GPG key:

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

    Then install

    $ sudo apt-get update && sudo apt-get -y install docker-ce
    

提交回复
热议问题