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:
-
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
-
-
At the prompt, enter the username and password.
The default user is
adminand 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.