Fortinet white logo
Fortinet white logo

Administration Guide

7.2.2

Connecting to the Container FortiOS CLI

Connecting to the Container FortiOS CLI

Container FortiOS provides access to the FortiOS CLI. It also provides access to the underlying Linux shell.

To connect to the running Container FortiOS container:
  1. In the host shell, enter the appropriate command for your platform:

    • LXC: lxc-console -n <container_name>

    • Docker: docker exec -it <container_name> /bin/cli

    • Kubernetes: kubectl exec --stdin --tty <container_name> /bin/cli

  2. At the prompt, enter the username and password.

    The default user is admin and the password is blank.

The Container FortiOS CLI is similar to the FortiOS CLI. While much of the command syntax is the same, there are a limited number of commands available, reflecting the available Container FortiOS features.

See the Container FortiOS CLI Reference for more information.

Connecting to the Container FortiOS CLI

Connecting to the Container FortiOS CLI

Container FortiOS provides access to the FortiOS CLI. It also provides access to the underlying Linux shell.

To connect to the running Container FortiOS container:
  1. In the host shell, enter the appropriate command for your platform:

    • LXC: lxc-console -n <container_name>

    • Docker: docker exec -it <container_name> /bin/cli

    • Kubernetes: kubectl exec --stdin --tty <container_name> /bin/cli

  2. At the prompt, enter the username and password.

    The default user is admin and the password is blank.

The Container FortiOS CLI is similar to the FortiOS CLI. While much of the command syntax is the same, there are a limited number of commands available, reflecting the available Container FortiOS features.

See the Container FortiOS CLI Reference for more information.