import os
import pathlib

services_path="/etc/systemd/system/multi-user.target.wants"
for file_name in os.listdir(services_path):
    file=pathlib.Path(services_path) /file_name
    with open(file,"r") as fp:
        if not "docker" in fp.read():
            continue
    print(file_name)

