A white Synology has deployed portainer to manage Docker, but the same management of Docker is required for a black Synology. Since Synology must use its own signature certificate, the following settings can be used to achieve portainer's simultaneous management of two or even multiple Synology Docker instances.
1. Set up the Docker to be managed on the NAS
Open Container Station, enter the preference settings - certificates as shown in the figure below, download the certificate file. After downloading, the name is cert.zip, upload it to the container folder for later use.
2. Execute the following commands via SSH, execute one by one
mkdir -pv ~/.docker
unzip /share/Container/cert.zip -d ~/.docker
Make sure you have permission to execute the relevant commands. If you don't have permission, open the advanced file sharing permissions in the shared folder. Otherwise, it's easy to make mistakes. Of course, you can also manually decompress and drag the file into the .docker folder.
3. Open "Preference Settings - Certificates" in the LAN (to obtain the LAN IP of the environment variable)
4. Enter portainer and add the Docker to be managed
Click "Environment" - Add Environment
Select the first one, Docker Standalone
Select API
Open TLS
Add the corresponding certificate file
Click Connect, and it's OK.