I created one Docker Image for a custom application which needs some license files (some files and one directory) to run, so I'm using the COPY command in the
Dockerfile to copy license file to the image:
# Base image: Application installed on Debian 10 but unlicensed FROM me/application-unlicensed # Copy license files COPY *.license /opt/application/ COPY application-license-dir /var/lib/application-license-dir
I use this
Dockerfile to build a new image with the license for a single container. As I have 5 different licenses I created 5 different images each with one specific license file and directory.
The licenses are also fixed to a MAC Address, so when I run one of the five container I specify its own MAC Address with the
docker run --rm --mac-address AB:CD:EF:12:34:56 me/application-license1
docker-compose is it possible to specify the container MAC Address, could I just use the unlicensed base image and copy license files and the license directory when I build the 5 containers with