Offline Installation (Docker)
Install Connectware on Docker in offline environments using Docker Compose.
This guide walks you through the process of installing Connectware in offline environments using Docker Compose. The offline installation process is designed for environments where Internet access is limited, unavailable, or restricted for security reasons.
The offline installation process has two phases:
Preparation phase: Use a donor PC with Internet access to download the Docker images, the installer script, and the license files.
Installation phase: Transfer the files to the recipient PC and install Connectware without Internet connectivity.
Prerequisites
Donor PC Requirements
Internet connection
Docker installed and running
Terminal access (Linux, macOS, or Windows with WSL)
Connectware license key (for authenticating with the Cybus registry)
Access to the Cybus Portal to download license files
USB drive or other transfer medium for moving files
Connectware does not need to be pre-installed on the donor PC. The Docker images will be pulled directly from the Cybus registry. However, if you already have Connectware installed, the existing Docker images can be reused, which will save time by skipping the pull step.
Recipient PC Requirements
Operating System: Linux
Docker and Docker Compose installed and running
For more information on installing Docker, refer to the Docker documentation. Docker Desktop includes Docker Compose along with Docker Engine and Docker CLI which are Compose prerequisites.
No Internet connection required
Sufficient disk space for Docker images (typically 5-10 GB for version 2.1.2)
Phase 1: Preparing Files on the Donor PC
Follow these steps on a computer with Internet access to download and prepare all required files.
Download Docker Images
Download all required Docker images for your Connectware version. This involves pulling images from the registry and then saving them to tar files.
If you already have Connectware installed on the donor PC, the required images may already exist locally in your Docker daemon. If all required images for your target version are present, you can skip the docker pull commands and proceed directly to the docker image save commands below.
To verify which images are already available locally, run the following command. If all required images for your target version are listed, you can skip the pull step.
To pull the required images, run the following commands. Make sure to replace
${VERSION}with the version you want to install.
The required images may vary between Connectware versions. The list below is for version 2.1.2 and later. For earlier versions, verify the required images by checking the installer script or consulting the release notes.
Example for version 2.1.2
The image download process may take several minutes depending on your Internet connection speed. Each image will be pulled from the registry and then saved to a tar file. The tar files will be several hundred megabytes each.
Download License Files
Go to the Cybus Portal.
Sign in with your credentials.
Navigate to Licenses to view your available Connectware licenses.
Select your license and download both the license key file (
.key) and license file (.lic).Save both files to your storage folder (
connectware-offline).
For detailed instructions on obtaining license files, see Acquiring License Keys.
Transfer Files to USB Drive
Copy all files from your storage folder to a USB drive or other transfer medium:
All Docker image
.tarfilesconnectware-online-installer.shscriptLicense key file (
.key)License file (
.lic)
Result: You have prepared all necessary files for offline installation. You can now proceed to the recipient PC.
Phase 2: Installing Connectware on the Recipient PC
Follow these steps on the offline recipient PC to install Connectware.
Run the Installer in Offline Mode
Run the installer script in offline mode using the -o flag:
The installer will prompt you for configuration options and then generate a docker-compose.yml file in the current directory.
The -o flag tells the installer to run in offline mode, which skips Internet connectivity checks and uses local Docker images. The installer is still interactive and will prompt for:
Installation directory (default:
/opt/connectware)Ingress hostnames
Whether to run as a systemd service
To run a non-interactive installation, use silent mode with additional flags:
The installer validates that all required Docker images are present before proceeding. If any images are missing, the installation will fail with an error listing the missing images.
Configure the License
Open the generated
docker-compose.ymlfile in a text editor:
Locate the
system-control-serverservice section and find theCYBUS_LICENSE_FILEenvironment variable.Open your license file (
.lic) and copy its entire content.Paste the license content as the value for
CYBUS_LICENSE_FILE:
Save and close the file.
Ensure you paste the entire content of the .lic file, including the -----BEGIN LICENSE----- and -----END LICENSE----- markers.
Accessing Connectware
After installation, you can access Connectware through your web browser:
Open your web browser.
Navigate to
https://localhostor the hostname you configured.Log in using the default credentials:
Username:
adminPassword:
admin
For security reasons, change the default admin password immediately after your first login. See Default Admin User for more information.
Uploading the License File
If prompted to upload a license file in the Admin UI, follow these steps:
In the Admin UI, navigate to System > System Status.
Click the License tab.
Click Upload License File.
Select your
.licfile and confirm the upload.
License Validation in Offline Environments
When running Connectware in an offline environment, you may see a warning message in the License View indicating that the system cannot connect to the license validation server at https://graphql-server.cybus.io/graphql.
This warning can be safely ignored in offline installations. The license validation has already been performed locally using the license file embedded in the docker-compose.yml configuration. Your license will show as valid.
The license information is stored locally in the docker-compose.yml file and does not require Internet connectivity to function. However, you will not be able to use the Refresh License button in the Admin UI, as this feature requires Internet access.
Troubleshooting
Docker Images Not Loading
Problem: Error messages when loading Docker images.
Solution: Verify that:
All
.tarfiles were transferred completely and are not corrupted.You have sufficient disk space on the recipient PC.
Docker is running with the correct permissions.
License File Not Accepted
Problem: Connectware does not accept the license file.
Solution: Ensure that:
You copied the entire content of the
.licfile, including the-----BEGIN LICENSE-----and-----END LICENSE-----markers.The license file is valid and not expired.
You pasted the content correctly in the
docker-compose.ymlfile without extra spaces or line breaks.
Containers Not Starting
Problem: Some or all containers fail to start.
Solution:
Check container logs:
docker compose logsVerify all images loaded successfully:
docker images | grep cybusEnsure ports 80 and 443 are not in use by other applications.
Cannot Access Connectware
Problem: Cannot access the Connectware Admin UI in the browser.
Solution:
Verify all containers are running:
docker compose psCheck if ports are accessible:
netstat -tuln | grep -E ':(80|443)'Try accessing using the server's IP address instead of localhost.
Next Steps
After successfully installing Connectware in offline mode, you can:
Last updated
Was this helpful?

