# Docker container (multiple) licenses when using yaml files (K8S)

**URL:** <https://forum.inductiveautomation.com/t/docker-container-multiple-licenses-when-using-yaml-files-k8s/68790>\
**Category:** Ignition\
**Tags:** ignition81, docker\
**Created:** [January 19, 2023, 2:54pm UTC](https://forum.inductiveautomation.com/t/docker-container-multiple-licenses-when-using-yaml-files-k8s/68790 "2023-01-19T14:54:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [January 19, 2023, 2:54pm UTC](https://forum.inductiveautomation.com/t/docker-container-multiple-licenses-when-using-yaml-files-k8s/68790/1 "2023-01-19T14:54:03Z")

</div>

Hi there,

I think I'll need @kcollins for this one, but it might be useful for more people to hear the answer on this question.

I saw [this post](https://forum.inductiveautomation.com/t/best-practice-for-maintaining-ignition-licenses-in-docker-container/21252), but it's from 2018 it's about Ignition 7.9, so I thought it would be better to create a new topic on this subject.

Our customer is using K8S to run Ignition. So that means we use yaml files to set up the configuration. Recently, we have changed from regular licenses to leased licenses. We have two licenses on one server, one from IA, and one from a third party vendor. We have trouble to automate the licensing activation for both licenses.

- We can add 'IGNITION\_LICENSE\_KEY' to our yaml configuration, but as far as we can tell, this only works for one license per server. Is this correct? Or can we provide multiple in a way?
- Is there an option to merge the two licenses into one license? Or is this impossible since there is a third party vendor involved?
- What is our alternative? We where thinking we could use gwcmd commands to activate our second license. Is there any code available for that?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 19, 2023, 2:56pm UTC](https://forum.inductiveautomation.com/t/docker-container-multiple-licenses-when-using-yaml-files-k8s/68790/2 "2023-01-19T14:56:29Z")

</div>

I'm a third-party module developer that uses IA's license system to control access to my modules. I have no idea how to issue a leasable license instead of a regular license. Did your third party make a lease-capable license?

---

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [January 19, 2023, 2:58pm UTC](https://forum.inductiveautomation.com/t/docker-container-multiple-licenses-when-using-yaml-files-k8s/68790/3 "2023-01-19T14:58:14Z")

</div>

I have no idea, they just gave me a leased license, could be that IA gave it to them or it could be they know how to make that. The vendor is Kymera systems.

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [January 19, 2023, 3:16pm UTC](https://forum.inductiveautomation.com/t/docker-container-multiple-licenses-when-using-yaml-files-k8s/68790/4 "2023-01-19T15:16:36Z")

</div>

As of **8.1.19** , you can utilize multiple 8-digit leased activation license keys. Prior to that version, only one could be loaded/active at a time. You can use the same `IGNITION_LICENSE_KEY` and `IGNITION_ACTIVATION_TOKEN` environment variables as before, but the content can now be comma-delimited, e.g.:

```bash
IGNITION_LICENSE_KEY=1234-5678,2345-6789
IGNITION_ACTIVATION_TOKEN=abcdef1234...789,bcdef2345...890

```

You can also use the `IGNITION_ACTIVATION_TOKEN_FILE=/path/to/file`  
form and have the file path point to a file with the comma-delimited contents (i.e. via K8s secret).

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 19, 2023, 4:55pm UTC](https://forum.inductiveautomation.com/t/docker-container-multiple-licenses-when-using-yaml-files-k8s/68790/5 "2023-01-19T16:55:45Z")

</div>

> [@louagejasper](#):
>
> The vendor is Kymera systems.

Hmm. I'll ping @Kyle_Chase and/or @Kevin.McClusky when the time comes.

---

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [January 20, 2023, 7:36am UTC](https://forum.inductiveautomation.com/t/docker-container-multiple-licenses-when-using-yaml-files-k8s/68790/6 "2023-01-20T07:36:14Z")

</div>

> [@kcollins](#):
>
> ```auto
> IGNITION_LICENSE_KEY=1234-5678,2345-6789
> IGNITION_ACTIVATION_TOKEN=abcdef1234...789,bcdef2345...890
> 
> ```

Cool, we did not know it was possible like this, thanks!

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [January 20, 2023, 2:15pm UTC](https://forum.inductiveautomation.com/t/docker-container-multiple-licenses-when-using-yaml-files-k8s/68790/7 "2023-01-20T14:15:49Z")

</div>

You're welcome! Sure enough, [the docs](https://docs.inductiveautomation.com/display/DOC81/Docker+Image#DockerImage-EnvironmentVariables) don't yet capture this nuance. I'll work with the team to get some more discoverability of this in place!

---

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [January 20, 2023, 2:33pm UTC](https://forum.inductiveautomation.com/t/docker-container-multiple-licenses-when-using-yaml-files-k8s/68790/8 "2023-01-20T14:33:54Z")

</div>

That would be great, thanks.
