-
What is Container Station?
-
Use cases
-
-
System requirements
-
Before you start
-
Create a container
-
Create or import a Docker container
-
Create or import an LXD container
-
Pull or import an image
-
-
Manage container and image actions
-
Manage Kubernetes clusters
-
Set up and use Kubernetes
-
Manage Kubernetes clusters
-
-
Configure and manage registries
-
Add an image registry
-
Manage default registries
-
-
Configure application preferences
-
Manage network settings
-
Configure certificate settings
-
-
Further reading and resources
This guide is applicable to QTS 5.1.0, QuTS hero h5.1.0, QuTScloud c5.1.0 and later versions.
What is Container Station?
Container Station is a virtualization platform developed by QNAP that allows you to effortlessly deploy and manage containerized applications on QNAP devices. The application supports both Docker and LXD containers, providing a lightweight, isolated environment for running applications and services with optimal resource efficiency.
Use cases
- Deploy cloud-native applications using containers
- Run isolated operating systems for development and testing
- Host virtualized services like web servers or databases
- Maintain multiple containerized environments on one QNAP device
System requirements
Before installing and using Container Station, it's essential to ensure that your QNAP device meets the minimum system requirements. These requirements vary based on the type of container platform you plan to use—Docker, Kata, or LXD. Each platform has different resource needs, including processor architecture, memory capacity, and supported operating systems.
System Requirement | Docker | Kata | LXD |
---|---|---|---|
CPU architecture |
|
|
|
Memory | 1 GB | 4 GB | 2 GB |
Before you start
- Log in to the device as an administrator.
- Ensure that Container Station is installed.
- Ensure that your device is connected to an external network using a default gateway.
- Ensure that your QNAP device firmware is up to date.
Create a container
Create or import a Docker container
Create a new Docker container by selecting an image from Docker Hub or import an existing Docker container from your local system or QNAP device. Configure settings such as the container name, auto-start policy, and networking options.
- Open Container Station and go to the Containers menu.
- Click Create.
- Select Docker Hub (Basic mode) or Docker image (Advanced mode).
- Specify the image name and version in Basic mode, or the image name and registry in Advanced mode.
Examples:- Basic mode:
nginx:1.25.2
- Advanced mode:
registry.hub.docker.com/library/postgres
- Basic mode:
- Select Try pulling the image from the registry before creating the container.
- Click Next and then configure the basic and advanced settings.
- Click Next to review the settings and then click Finish to create the container.
Create or import an LXD container
Select an LXD image to create a new container or import an LXD container from a local system or QNAP device. Customize settings like the container’s name, storage, and auto-start policy.
- Open Container Station and go to the Containers menu.
- Click Create.
- Select LXD Image Server (Basic mode) or LXD image (Advanced mode).
- Specify the image name and version in Basic mode, or the image name and registry in Advanced mode.
Examples:- Basic mode:
ubuntu:22.04
- Advanced mode:
images:ubuntu/22.04
- Basic mode:
- Select Try pulling the image from the registry before creating the container.
- Click Next and configure the basic and advanced settings.
- Review the container settings and click Next to continue.
- Click Finish to create the container.
Pull or import an image
The Pull Image feature enables users to download container images from an online registry, while the Import Image feature allows them to load images directly from local files or backups.
The key differences between pulling and importing images are as follows:
- Image source: Pulling retrieves an image from an online registry, while importing builds an image from a file stored locally.
- Usage: Pulling is for downloading images from external sources, whereas importing is for loading images from local backups or exports.
- Open Container Station and click Explore.
- Click Pull Image or Import Image.
- Configure the image settings.
Manage container and image actions
Manage and control your containers through Container Station. Common actions include starting, stopping, pausing, restarting, or removing containers. You can also inspect container logs, resource usage, and performance statistics.
- In Container Station, go to the Containers or Images.
- Select the container or image you want to manage from the list.
- Under Actions, select
or
.
Notenext to your container indicates that the container is being managed or orchestrated by a Kubernetes cluster.
- Perform any of the following container actions.
Basic container lifecycle actions
Action Description Start Begin running a stopped container. Restart Restart a running or stopped container. Stop Stop a running container. Force Stop Forcefully stop a running container immediately. Pause Temporarily halt a running container without stopping it. Resume Resume a paused container and continue its processes. Container inspection and interaction
Action Description Inspect View detailed information about the container’s configuration and status. Execute Run terminal commands inside the running container. Attach Connect to a container's standard input/output streams. Container configuration and management
Action Description Edit Modify the container's settings and parameters. Recreate Directly Recreate a stopped container using its previous settings. Recreate Recreate a container with updated settings. Duplicate Create a duplicate of an existing container. Container image and data management
Action Description Create Image Create a reusable image from a running or stopped container. Export Export a container to be used on another device. Remove Delete a container from the system. - Perform any of the image actions.
Image inspection and management
Action Description Inspect View detailed information about an image's configuration and properties. Containers in Use Display a list of containers using a specific image. Image tagging and versioning
Action Description Tag Assign or modify a tag (version) for a specific image. Image download and upload
Action Description Pull Download an image from a registry to Container Station. Push to Registry Upload an image to a registry for later use. Push Directly Upload an image to a registry without intermediate steps. Image export and removal
Action Description Export Save an image to a local system or QNAP device for backup or transfer. Remove Delete an image from the system to free up space or clean up unused resources.
Manage Kubernetes clusters
Set up and use Kubernetes
Enable Kubernetes support by setting up a lightweight K3s cluster within Container Station. Deploy Kubernetes workloads and manage applications using the Kubernetes dashboard or kubectl commands.
- Open Container Station and navigate to the Kubernetes section.
- Select Enable K3s lightweight Kubernetes.
- Optional: Enable Display Kubernetes system containers.
- Click Apply to finalize the setup.
- Access the Kubernetes dashboard using the provided URL for monitoring and managing workloads.
Manage Kubernetes clusters
Control Kubernetes clusters by starting, stopping, and resetting the cluster or viewing its status. Manage cluster resources and monitor container workloads running within the Kubernetes environment.
- Open Container Station and navigate to the Kubernetes section.
- Download the Kuberconfig file.
- Click the Kubernetes dashboard URL.
Container Station opens the Kubernetes webpage in a new tab. - Enter the Kubernetes token or upload the Kuberconfig file, and then click Sign in.
- Deploy containerized applications. For details, see Deploy containerized applications in the Kubernetes documentation page.
Configure and manage registries
Container Station allows you to manage various default image registries, including Docker, Harbor, and other registry types, enabling secure storage and retrieval of container images. The application also provides two reserved system default registries (Docker Hub and LXD Image Server).
Add an image registry
- Go to Registries in the menu.
- Click Create to open the Add Registry window.
- Configure the following settings:
- Name: Enter a name for the registry.
- URL: Enter the registry URL.
- Authentication: Enable this to specify a username and password.
- Trust SSL Self-Signed Certificate: Select this option if the SSL certificate is not signed by a trusted Certificate Authority.
- Optional: Click Test Connection to verify the connection.
- Click Apply to add the image registry.
Manage default registries
- Enable Docker hub authentication: Enable the toggle switch next to Authentication in the Docker Hub section, specify a username and password, and click Apply.
- Edit a custom registry: Click
> Edit in the Actions column next to the registry, and modify the settings.
- Remove a custom registry: To delete a registry, click
> Remove. For multiple registries, select each one and then click Action > Remove.
Configure application preferences
Manage network settings to set up and customize network configurations for containers, including IP ranges, DNS settings, and network bridges for both Docker and LXD containers. Additionally, you can adjust the IP settings of certain QNAP containerized applications from this page. Network settings for Container Station-dependent QPKG applications can also be configured here, allowing you to manage both container and application-level networking in one place.
Manage network settings
- Go to Preferences in Container Station.
- Select Network Settings from the menu.
- Configure IP address ranges for Docker and LXD containers.
- Set up DNS servers and bridge networks for container communication.
- Click Apply to save the settings and restart Container Station.
Add a custom app template
Adding a custom app template allows you to make a list of additional applications available within Container Station.
- Start Container Station.
- On the menu, click Preferences.
- Go to App Templates.
- Select Enable custom template.
- Specify the URL to the custom app template.
- Click Apply.
http://[IP_Address]:[Port]/my-template-file.json
.This process enables you to expand the app options within Container Station, tailoring the available applications to your specific needs.
Configure certificate settings
Docker certificates are essential for securing communications between Docker clients and servers, ensuring encrypted data transfer and authenticated connections. This guide explains how to configure certificate settings in QNAP Container Station for a secure Docker environment.
- Open Container Station, go to Preferences, and click on the Certificates tab to access certificate configuration settings.
- Click the Download button to obtain the certificate file needed for secure connections.
- Create a directory (
~/.docker
) and extract the downloaded certificate using the commandunzip cert.zip -d ~/.docker
. - Set the Docker environment variable by running
export DOCKER_HOST=tcp://<IP_ADDRESS>:2376 DOCKER_TLS_VERIFY=1
, replacing<IP_ADDRESS>
with the appropriate value from the configuration. - Confirm that the domain name matches your configured certificate (e.g.,
1234.myQNAPcloud.com
) and verify the last renewal date to ensure timely updates.
Further reading and resources
- Container Station: Official QNAP landing page for Container Station
- How to use Container Station 3: A detailed QNAP tutorial for configuring Container Station
- Knowledge Base: Searchable database of FAQs, tutorials, and web helps
- QNAP College: Instructional video tutorials