Score:0

About runing docker on colab pages (Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?)

cn flag

I am trying to install docker on Google colab (this page) by the below instruction:

!lsb_release -a
!apt-get install containerd=1.2.6-0ubuntu1
!apt-get install docker.io
!docker --version
# Docker version 18.09.5, build e8ff056
!docker ps

But I get below error:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:    18.04
Codename:   bionic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '1.2.6-0ubuntu1' for 'containerd' was not found
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 docker.io : Depends: containerd (>= 1.2.6-0ubuntu1~)
E: Unable to correct problems, you have held broken packages.
Docker version 20.10.8, build 3967b7d
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?



Also, I excuse because of The cluttered code on the above colab page, which are from my efforts to find the right code.

Thanks.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.