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 respository 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.
To manage your Repository list:
- Click Settings, and in the Registry list window you can select the repositories you want to manage.
- 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 respositry to use for your search.
Note:
- Docker Hub is a default repository server, and cannot be deleted or edited.
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 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, https://registry.hub.docker.com/_/mysql, or https://registry.hub.docker.com/v1/repositories/library/mysql/.
- Add from file: you can select an image file to add from your folders on DSM.
To launch a container with an image:
- Select an image.
- In the Launch drop down menu, select either Launch with wizard or Launch with Docker Run.
- Selecting Launch with wizard will take you through a wizard to create your contianer.
- Selecting Launch with Docker Run will allow you to enter a run command that will speed up your process of going through the wizard.
Note:
- Docker run supports the below parameters:
- "d", "detach"
- "e", "env"
- "link"
- "m", "memory"
- "name"
- "P", "publish-all"
- "p", "publish"
- "privileged"
- "v", "volume"
- Docker run does not support the below parameters:
- "a", "attach"
- "add-host"
- "c", "cpu-shares"
- "cap-add"
- "cap-drop"
- "cidfile"
- "cpuset"
- "device"
- "dns"
- "dns-search"
- "entrypoint"
- "env-file"
- "expose"
- "h", "hostname"
- "i", "interactive"
- "lxc-conf"
- "net"
- "restart"
- "rm"
- "security-opt"
- "sig-proxy"
- "t", "tty"
- "u", "user"
- "w", "workdir"
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 DiskStation 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.
To edit a container:
- Select a contianer and click Edit.
- In the Basic options tab, you can do the following:
- Enable resource limitation, and set CPU priority.
- Create a shortcut of the status page or web page on your desktop.
- Add or delete ports.
- 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 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:
- Enable privileges setup.
- Add or delete environment variables.
- Enter an execution command.
- Click OK to save your settings.
To perfom basic actions on your contianers:
- 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 a running containers.
- Force stop: Force stop a container when Stop isn't working for unknown reasons.
- Clear: Clear a container to return it to its settings upon creation.
- Delete: Delete a contianer.
Note:
- Once a container is cleared 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 contianer settings to a container on a differnet 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 veiw 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.