- 15 Feb 2023
- 2 Minutes to read
- Print
- DarkLight
- PDF
Register docker image
- Updated on 15 Feb 2023
- 2 Minutes to read
- Print
- DarkLight
- PDF
The 'Docker Images' page is available at 'Data->Process->Docker Images' on the left navigation panel as shown below.
The Data Explorer default provided docker images are listed with the 'Akridata' badge, as shown above. To use a custom docker image in Pipelines, the docker image must be registered as per the instructions on this page.
To register a docker image, follow the below steps.
- Click on the '+Register Docker Image' button at the top right of the above page. This opens a form as below
- Fill in the form fields as per the instructions below.
- Repository: Select a docker repository available as a drop-down list. The drop-down list contains all the eligible docker repositories that are registered on the Docker Repositories page.
- Docker Image Name: The name of the docker image as uploaded to the docker repository using the docker push command. Please refer to Publish-docker-image for more details.
- Docker Image Tag: The default value of 'latest' will pick the latest available docker image whenever the 'adectl run' is executed. To register a specific fixed version of the docker image, enter the specific tag here.
- Name: A identifiable name which will be displayed on the Data Explorer UI.
- Filter type: Select from the drop-down of docker types like 'Featurizer', 'Image Preprocessor', 'Thumbnail generator' and 'Attribute generator'. Depending on the type selected, additional form fields will open up, and these fields are described later in this article.
- Add Docker command: Enter the docker command to be executed inside the docker. For the example program described in Develop-docker-image, this field should be filled with 'python3 /opt/akridata/thumbnail.py'.
- GPU Usage: Select from available options 'No GPU required', 'GPU mandatorily required', and 'Use GPU if available' depending on the expectations and constraints of the program within the docker image.
- Click on the 'Save' button.
Fields based on docker(filter) type
Thumbnail generator
A thumbnail generator does not take any docker type-specific fields.
Image Preprocessor
An image preprocessor does not take any docker type-specific fields.
Featurizer
The 'Feature Dimensions' section to be filled specifically for a featurizer is described below.
- Select between 1D and 3D depending on whether features are generated on the full image or on individual cells of a grid over the image respectively.
- If 3D is selected, enter the Grid Size in the fields provided.
- Enter the 'No of Features' produced for each image(1D) or a cell of the image(3D).
- Patch search is allowed only with a 3D featurizer.
Attribute generator
For an attribute generator type of docker, specify the name of the columns generated by the docker and their corresponding data type. If the specification here has N columns, then the output CSV file(refer to Interface specification) is expected to have N+1 columns with first column being the file_path.