9

Docker (1.5-1+b1) is installed successfully but not working. I am running it inside of VMware. When I run the command "sudo docker run hello-world", it results "command not found". enter image description here

Zobia Kanwal
  • 4,085
  • 4
  • 15
  • 38
Waqar Naeem
  • 963
  • 6
  • 12
  • Can you show the result of `sudo dpkg -l | grep docker` and `whereis docker`? – Sergio Feb 03 '19 at 09:40
  • @sergkondr please see the link (http://oi67.tinypic.com/28a3ody.jpg) – Waqar Naeem Feb 03 '19 at 10:05
  • 2
    You should to install `docker-ce`: https://docs.docker.com/install/linux/docker-ce/ubuntu/ – Sergio Feb 03 '19 at 10:56
  • 1
    @sergkondr I have tried it already but it couldn't go in vain – Waqar Naeem Feb 03 '19 at 11:04
  • Just run this steps: 1. sudo apt-get remove docker docker-engine docker.io containerd runc 2. sudo apt-get update 3. sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common 4. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 5. sudo add-apt-repository "deb [arch=XXXX] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" 6. sudo apt-get update 7. sudo apt-get install docker-ce docker-ce-cli containerd.io And change XXX to your arch(you can get it here: `cat /etc/apt/sources.list | grep arch=`) – Sergio Feb 03 '19 at 11:16
  • @sergkondr Look at the attached image , seems like the corrupted file. (http://oi68.tinypic.com/2v2fexs.jpg) – Waqar Naeem Feb 03 '19 at 12:47
  • 1
    According to my previous comment: "And change XXX to your arch" – Sergio Feb 03 '19 at 16:36
  • Following the last comment about architecture but getting the same result, please have a look [error] (http://oi64.tinypic.com/2mgo110.jpg) – Waqar Naeem Feb 03 '19 at 20:18

0 Answers0