Fortinet white logo
Fortinet white logo
7.2.2

Creating the container

Creating the container

Use the docker container create command to create the Container FortiOS container and prepare it to be run:

sudo docker container create \
--network 00-cFOS-WAN \
--ip=10.210.16.254 \
-p 192.168.11.248:2431:2431 \
-p 192.168.11.248:2432:2432 \
-p 192.168.11.248:4022:4022 \
-p 192.168.11.248:5443:5443 \
-p 192.168.11.248:8080:8080 \
-p 192.168.11.248:500:500/udp \
-p 192.168.11.248:4500:4500/udp \
--cap-add=NET_ADMIN \
--cap-add=SYS_ADMIN \
--security-opt apparmor:unconfined \
--name cfos1 \
-v/srv/cfos/cfos1_data:/data \
--dns 96.45.45.45 \
--dns 96.45.46.46 \
-it fos

Replace the values in the command with appropriate values for your configuration. In this example, 192.168.11.248 is the host external IP address.

For more information about Docker options for this command, see the Docker documentation for the docker create command.

Creating the container

Creating the container

Use the docker container create command to create the Container FortiOS container and prepare it to be run:

sudo docker container create \
--network 00-cFOS-WAN \
--ip=10.210.16.254 \
-p 192.168.11.248:2431:2431 \
-p 192.168.11.248:2432:2432 \
-p 192.168.11.248:4022:4022 \
-p 192.168.11.248:5443:5443 \
-p 192.168.11.248:8080:8080 \
-p 192.168.11.248:500:500/udp \
-p 192.168.11.248:4500:4500/udp \
--cap-add=NET_ADMIN \
--cap-add=SYS_ADMIN \
--security-opt apparmor:unconfined \
--name cfos1 \
-v/srv/cfos/cfos1_data:/data \
--dns 96.45.45.45 \
--dns 96.45.46.46 \
-it fos

Replace the values in the command with appropriate values for your configuration. In this example, 192.168.11.248 is the host external IP address.

For more information about Docker options for this command, see the Docker documentation for the docker create command.