How to check whether docker is installed in centos7:
1. If the rpm package is installed, you can use rpm -qa to see it. If you want to find out whether a certain software package is installed, Use rpm -qa | grep "the name of the software or package".
rpm -qa | grep docker
2. If installed by yum method, you can use yum list installed to search. If you are looking for a specified package, add | grep "software name or package name" after the command;
yum list installed | grep docker
Recommended tutorial:centos tutorial
The above is the detailed content of How to check whether docker is installed in centos7. For more information, please follow other related articles on the PHP Chinese website!