Create a container configuration
To create a new container configuration, perform the following tasks:
- From the Splunk OTI main navigation, select Containers.
- Click New Deployment.
- In the Container Information section, enter a Name for your container configuration.
- In the Container Source section, choose one of the following options:
- Docker Repository option: Use this option for images hosted on Docker Hub or private registries.
- Select Docker Repository.
- In the Image Name field, enter the Docker image name. For example: nginx, tensorflow/tensorflow, or myregistry.com/myapp.
- In the Tag field, enter the image tag. For example: latest, 1.21, or v2.4.0.
- Container URL option: Use this option for direct links to container images.
- Select Container URL.
- In the Container URL field, enter the complete URL to the container image. For example: https://registry.example.com/myapp:v1.0.
- Docker Repository option: Use this option for images hosted on Docker Hub or private registries.
- Configure container runtime settings. Container runtime settings control resource allocation, networking, and application behavior.
- In the JSON Configuration section, enter your container configuration using JSON format.
- Configure mapped files (optional): Mapped files allow you to mount external files into the container's filesystem, useful for configuration files, AI models, or data sets. To add mapped files manually:
- In the Mapped Files section, click Add Manually.
- Click Add File.
- In the Filename field, enter the path inside the container where the file will be mounted. For example: /app/config.json.
- In the URL field, enter the external URL where the file can be downloaded. For example: https://storage.example.com/config.json.
- Repeat for additional files.
- To upload mapped files as JSON:
- In the Mapped Files section, click Upload JSON.
- Enter a JSON array defining your mapped files.
- Save the container configuration:
- Review your configuration settings.
- Click Create Deployment to save the container configuration.