Deploy Container Defender
Install Container Defender on each host that you want Prisma Cloud to protect.
Single Container Defenders can be configured in the Console UI, and then deployed with a curl-bash script. Alternatively, you can use twistcli to configure and deploy Defender directly on a host.
Install a single Container Defender (Console UI)
Configure how a single Container Defender will be installed, and then install it with the resulting curl-bash script.
Prerequisites:
Your system meets all minimum system requirements.
Ensure that the host machine where you installed the Defender can access the Prisma Cloud console the network.
You have sudo access to the host where you want to deploy the Defender.
+ image::install-defender-deploy-page.png[width=800]
Under Deployment method, select Single Defender.
In Defender type, select Container Defender - Linux or Container Defender - Windows.
When you select Container Defender - Linux, Container Runtime Type field appears.
In Container Runtime Type, select Podman or Docker.
When you select Podman, the installation script includes the
--install-podmanargument. If your infrastructure uses a custom Podman runtime socket path, you can specify it using the--podman-socketargument.For example, to use Podman with a custom runtime socket path, the final command would look like this:
curl -sSL --header "<Bearer TOKEN>###" -X POST <TENANT URL>/api/v1/scripts/defender.sh | sudo bash -s — -c "stage-consoles-cwp.cloud.twistlock.com" -v --install-podman --podman-socket "<custom_runtime_socket_path>"(Optional) Set a custom communication port (4) for the Defender to use.
(Optional) Set a proxy (3) for the Defender to use for the communication with the Console.
(Optional) Under Advanced Settings, Enable Assign globally unique names to Hosts when you have multiple hosts that can have the same hostname (like autoscale groups, and overlapping IP addresses).
After setting the option to ON, Prisma Cloud appends a unique identifier, such as ResourceId, to the host’s DNS name. For example, an AWS EC2 host would have the following name: Ip-171-29-1-244.ec2internal-i-04a1dcee6bd148e2d.
Copy the installation script command from the right-side panel, which is generated based on the options you have selected. On the target host where Defender is to be installed, paste the command into a shell window and execute it.
The HOST_FIM_MOUNTS parameter permits Defender to specify additional host mounts to be monitored. This facilitates the tracking of an expanded set of mount points on the host, in addition to those monitored by default. To configure the HOST_FIM_MOUNTS environment variable and install the container defender on a tenant, perform the following steps:
Select all the options as per requirement till step 7 above, and copy the install scripts command from the right side panel with details of all options you have selected:
Remove the tenant and podman(if selected) details from the command to download the defender.sh file using the following command:
Edit the downloaded defender.sh to include the
envvariable in the following command:(Optional) If you have selected Podman in the consolue UI, include`--install-podman` argument as below to the install the defender.
(Optional) If your infrastructure uses a custom Podman runtime socket path, you can specify it using the
--podman-socketargument. For example, to use Podman with a custom runtime socket path, the final install command would look like this:If Podman details are not inlcuded, execute the following command to install the defender on the tenant.
Verify the Install
Verify that the Defender is installed and connected to Console.
Defender can be deployed and run with full functionality when dockerd is configured with SELinux enabled (--selinux-enabled=true). All features will work normally and without any additional configuration steps required. Prisma Cloud automatically detects the SELinux configuration on a per-host basis and self-configures itself as needed. No action is needed from the user.
In Console, go to Manage > Defenders > Defenders: Deployed.
Your new Defender should be listed in the table, and the status box should be green and checked.
Last updated
Was this helpful?

