General Settings
In this page, you will be guided through configuring the general settings of Docker.
Overview
In the overview page, you can view the total amount of your DiskStation's CPU and RAM that is being used by the containers you have created on Docker. Additionally, you can easily monitor the profiles of all your enabled containers.
Registry
The Registry tab allows you to download image files from the storage server. You can easily use the vast image resources on Docker Hub, or your own resources on privately configured repository servers.
To download images from the storage server:
- Enter your relevant keywords in the search bar and click Search.
- Select your desired image from the search results and click Download. You can also double click to download.
Note:
- If you cannot download the images, try setting DNS as 8.8.8.8.
To manage your Repository list:
- Click Settings, and in the Registry list window, you can select the repositories you want to manage.
- The default repositories, Docker Hub and Aliyun Hub, cannot be deleted.
- You can deploy a private registry server by using Docker official or third-party registry images. If the images you download satisfy registry HTTP API version 1 or 2, they can be integrated to the Registry page by going to Registry > Settings, and click Add.
- You can perform the following:
- Add/Edit/Delete a repository: Click Add, Edit, or Delete to perform your desired action on your chosen repository.
- Use a repository: You can select which repository to use for your search.
Note:
To set a registry mirror of Docker Hub:
- Go to Registry > Settings. Select Docker Hub and click Edit.
- Select Enable registry mirror and type the URL.
Manage Images
In the Image tab, you can manage all the images on your DSM, and select images to create containers. Additionally, you can also easily add images from files or URLs.
To export images:
- Click Export to pack the image.
To add images:
- Click Add and select one of the two options in the drop-down menu:
- Add from URL: Enter the Hub Page or Repository URL, such as MySQL or https://hub.docker.com/_/mysql.
- Add from file: Select the image file previously exported to DSM, or upload an image file from your computer.
To launch a container with an image:
- Select an image.
- Double click your selected image, or click Launch.
Manage Containers
In the Container tab, you can view the statuses of your containers, including their CPU and RAM usages. You can also manage and configure other additional settings or view the details for each container. You can also export container settings to easily transfer the data to another Synology NAS device which also supports Docker.
To get more details about each container:
- Click Details or double click your selected container.
- In the window that appears, you can view the following tabs:
- Overview: See the status of your chosen container, including its CPU and RAM usage. You can also view Port Settings, Volume, and Links, as well as Environment Variables. You can also Start, Stop, or Force stop the container.
- Process: View the processes running within this container.
- Log: View the logs related to your chosen container, or search for a specific log. You can also click the Export button to export your logs.
- Terminal: Access the terminal interface attached to your chosen container.(Requires Web Sockets support in your web browser.)
To access the terminal interface of a container:
- Click Details or double click your selected container, and switch to the Terminal tab.(Require Web Sockets support in your web browser.)
- Click the Primary Terminal on the left side of the Terminal Tab. You can attach to the terminal of the main execution command of the container.
- Most of the main execution command of containers do not have interactive interfaces. Click the Create button on the left top corner to create a Secondary Terminal, executing /bin/bash by default.
Note:
- All terminals can be renamed.
- Only Secondary Terminals can be deleted.
To edit a container:
- Select a container and click Edit.
- In the General Settings tab, you can do the following:
- Enable resource limitation, and set CPU priority.
- Create a shortcut to the status page or web page on your desktop.
- Enable auto-restart.
- Enable privileges setup.
- In the Volume tab, you can do the following:
- Add or delete files or folders.
- Enter a mount path for the files and folders added.
- Select whether to give the file or folder read-only privilege.
- In the Port settings tab, you can do the following:
- Add, delete or modify ports.
- In the Links tab, you can do the following:
- Add or delete containers.
- Set an alias for your added containers.
- In the Environment tab, you can do the following:
- Add or delete environment variables.
- Click Apply to save your settings.
Note:
- You can mount files or shared folders onto containers, both of which can be backed up using Hyper Backup and Snapshot Replication.
To perform basic actions on your containers:
- Click the Action button and select one of the following from the drop-down menu:
- Start: Start a container that has been stopped.
- Restart: Restart a container.
- Stop: Stop running containers.
- Force stop: Force stop a container when Stop isn't working for unknown reasons.
- Reset: Reset a container to return it to its settings upon creation.
- Delete: Delete a container.
Note:
- Once a container is reset or deleted, all your data will be lost and cannot be recovered.
To duplicate, import, or export the settings for a container:
- Click Settings and select one of the following from the drop-down menu:
- Duplicate: Duplicate the settings of your chosen container to speed up the process of creating a new container.
- Import settings: Import settings to your chosen container. Choose the file you want to import and click Select.
- Export settings: Export the settings of your chosen container. This helps the user easily deploy the environment on another Docker with the same image.
To apply current container settings to a container on a different Synology NAS:
- In the Container tab, select the container you want to export.
- Click Export settings.
- Log into another Synology NAS and create a container with the same image file.
- Select the container and click Settings > Import Settings.
- Choose the file you previously downloaded and click Select to import settings.
Log
In the Log tab, you can track the actions of users within a set period of time. You can view the log in its entirety, or use the filter to only view certain events.
To search logs with specific filters:
- You can filter logs in the following ways:
- Keyword: Insert usernames to search for any logs related to the user.
- Type: Choose the type of log you want to view from Info, Warning, or Error.
To clear logs:
- Click Clear to clear all logs.
To export logs:
- Click Export.
- In the drop-down menu, select either HTML or CSV and the log will be exported in your chosen file type.