Search This Blog

Tuesday, 2 February 2021

Docker Installation

 Install docker using the following commands

$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh





Check the docker version using the following command :
$ sudo docker version



Run a sample application using the following command

$ sudo docker run hello-world
vagrant@vagrant-ubuntu-trusty-64:~$ sudo docker run hello-world
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:297: copying bootstrap data to pipe caused \"write init-p: broken pipe\"": unknown.

If you get the above error , then run this command to update the docker version :  sudo apt-get install docker-ce=18.06.1~ce~3-0~ubuntu then run sudo docker run hello-world. So we are basically downgrading docker version to 18.06.1-ce








Verify if the image is created by running the following command
$ sudo docker images




No comments: