Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run docker images in google-colaboratory? [duplicate]

How to run docker images in google-colaboratory ? I tried to install docker service in google-colaboratory.

However, I got the error message about " Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?", when I executed the docker's commands.

screen-snap

I wonder How to solve this problem?

THX

like image 505
CodeOverflow Avatar asked Mar 27 '18 03:03

CodeOverflow


1 Answers

i think right now we can't use docker in collab, i tried instaling sudo and even runing de docker daemon with dockerd command and have no positive result.

my solution was to install all the dependencies of the image by hand like this:

!sudo apt-get update
!apt-get install -y wget bzip2
!apt-get install -y gcc perl git
!rm -rf /var/lib/apt/lists/*

!cd /
!mkdir anaconda
!cd anaconda
!wget https://repo.anaconda.com/archive/Anaconda2-5.2.0-Linux-x86_64.sh
!bash Anaconda2-5.2.0-Linux-x86_64.sh
!source ~/.bashrc
!cd ..
!rm -r anaconda

like image 188
Elieser Jose Pereira Reyes Avatar answered Oct 26 '22 17:10

Elieser Jose Pereira Reyes