The solution to sudo: docker: command not found appears

1. As shown in the question

The docker is installed, but when the docker command is executed, the problem is prompted:

ubuntu@10-41-104-1:~$ sudo docker ps -a
sudo: docker: command not found

ubuntu@10-41-104-1:~$ sudo apt-get install docker
Reading package lists... Done
Building dependency tree

Guess you like

Origin blog.csdn.net/weixin_47872288/article/details/132334942