View the image license information

You can view the image license information by running a command.

Run the following command to view the image license:

  • Docker:
    
    docker run -e license="view" -v  <path to mount directory>/License:/opt/IBM/License -it <image name>:<version>
  • Podman:
    
    podman run -e license="view" -v  <path to mount directory>/License:/opt/IBM/License -it <image name>:<version>
where:
  • <path to mount directory> - provide the absolute path of the directory where the mount files are extracted
  • <image name>:<version> - refers to the image name and version of the image that is downloaded from the repository and used to deploy the application.
When you run this command, the following license files gets generated under <path to mount directory>/License:
  • LA_en
  • LI_en
  • non_ibm_license
  • notices

Verifying the Docker/Podman run command

  • To verify if the Docker run command is successful, run:
    docker logs <container name>
  • To verify if the Podman run command is successful, run:
    podman logs <container name>
The following message is displayed:
License files are copied to the mount directory. To read the license agreement, navigate to the mount directory path specified on host machine.