I can't install Docker because containerd.io has no installation candidate

后端 未结 4 1146
星月不相逢
星月不相逢 2021-02-11 15:15

I tried to install Docker on Kubuntu 19.10.

I used these steps to install: https://docs.docker.com/install/linux/docker-ce/ubuntu/

During step 2, after added r

4条回答
  •  抹茶落季
    2021-02-11 15:45

    The official docker documentation recommend to use

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

    for Ubuntu 19.10 which seems that doesn't contain 'containerd.io' package yet.

    Remove the previously added repository using add-apt-repository --remove :

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

    and add the one used for bionic (18.10) Ubuntu release:

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

    After this, update and install docker:

    $ sudo apt-get update
    $ sudo apt-get install docker-ce docker-ce-cli containerd.io
    

提交回复
热议问题