Fortinet white logo
Fortinet white logo
7.2.2

Connecting to the Container FortiOS CLI

Connecting to the Container FortiOS CLI

Container FortiOS provides access to the FortiOS shell for CLI usage as well as the underlying Linux shell.

The Container FortiOS CLI is based on the FortiOS CLI, but has fewer available options.

To connect to the running Container FortiOS container:

In the host shell, enter the following command:

sudo docker exec -it <container_name> /bin/cli

The initial username is admin with an empty password. Use config system admin to set a password.

Tooltip

To enter the Linux shell, use the following command:

sysctl sh

Connecting to the Container FortiOS CLI

Connecting to the Container FortiOS CLI

Container FortiOS provides access to the FortiOS shell for CLI usage as well as the underlying Linux shell.

The Container FortiOS CLI is based on the FortiOS CLI, but has fewer available options.

To connect to the running Container FortiOS container:

In the host shell, enter the following command:

sudo docker exec -it <container_name> /bin/cli

The initial username is admin with an empty password. Use config system admin to set a password.

Tooltip

To enter the Linux shell, use the following command:

sysctl sh