When configuring docker in linux, it is often necessary to modify the content of docker.service. Different Linux systems and versions have different paths to this file. Today, let’s talk about a relatively standard way to find it.
The system I use here is Ubuntu 22.04 desktop version
1. Open the terminal
Enter the following command in the terminal
sudo systemctl status docker.service
Press Enter to execute
2. View the real path of docker.service
In the returned results, you can see the real path of docker.service
The above is the detailed content of Share the method of finding the docker.service file path in Linux. For more information, please follow other related articles on the PHP Chinese website!