Fortinet white logo
Fortinet white logo
7.6.0

Deployment using Windows CLI

Deployment using Windows CLI

To deploy using the Windows CLI:
  1. Open a Windows command prompt or PowerShell terminal.

  2. To verify the running wsl status and its version, enter wsl -l -v.

    This command is used to list the currently running Windows Subsystem for Linux (WSL) distributions along with their states and versions. For example, see below:

  3. Enter the following command:

    docker run -dit --name faz_OnWindowsOS --restart always --cap-add=ALL -v faz_OnWindowsOS_var:/var -v faz_OnWindowsOS_data:/data -p 44443:443 fortinet/fortianalyzer:7.2.3.1405

    This command runs a detached, interactive Docker container named "faz_OnWindowsOS" based on the fortinet/fortianalyzer:7.2.3.1405 image. The container has all capabilities, uses two volumes for data persistence (faz_OnWindowsOS_var for /var and faz_OnWindowsOS_data for /data), and maps port 44443 on the host to port 443 in the container. The container will automatically restart if it stops or crashes.

The macvlan networking driver exclusively operates on Linux hosts and isn't supported on Docker Desktop for macOS and Windows. Consequently, when setting up an FMG/FAZ Docker app on Windows or macOS, it's essential to review the required ports for access or exposure.

Note

Please refer to the FortiAnalyzer Ports document to review the incoming and outgoing ports. This information is essential as you may need to grant access or expose these ports to your Docker application or Docker host during the docker deployment.

Deployment using Windows CLI

Deployment using Windows CLI

To deploy using the Windows CLI:
  1. Open a Windows command prompt or PowerShell terminal.

  2. To verify the running wsl status and its version, enter wsl -l -v.

    This command is used to list the currently running Windows Subsystem for Linux (WSL) distributions along with their states and versions. For example, see below:

  3. Enter the following command:

    docker run -dit --name faz_OnWindowsOS --restart always --cap-add=ALL -v faz_OnWindowsOS_var:/var -v faz_OnWindowsOS_data:/data -p 44443:443 fortinet/fortianalyzer:7.2.3.1405

    This command runs a detached, interactive Docker container named "faz_OnWindowsOS" based on the fortinet/fortianalyzer:7.2.3.1405 image. The container has all capabilities, uses two volumes for data persistence (faz_OnWindowsOS_var for /var and faz_OnWindowsOS_data for /data), and maps port 44443 on the host to port 443 in the container. The container will automatically restart if it stops or crashes.

The macvlan networking driver exclusively operates on Linux hosts and isn't supported on Docker Desktop for macOS and Windows. Consequently, when setting up an FMG/FAZ Docker app on Windows or macOS, it's essential to review the required ports for access or exposure.

Note

Please refer to the FortiAnalyzer Ports document to review the incoming and outgoing ports. This information is essential as you may need to grant access or expose these ports to your Docker application or Docker host during the docker deployment.