Troubleshooting
Marketplace Troubleshooting
MAC Address Issues for Docker Containers
6 min
docker engine will generate a new mac address each time a container is created if you install litmus edge in docker, the license depends on the mac address if the container is recreated and gets a new mac address, the license will not work solution if you need to re install litmus edge, don't delete the original container instead, stop it using the command docker stop \<container name or id> then, continue installing the new container if the original container is deleted, see the steps below to configure the new container with the same mac address step 1 run docker container in the command below, docker alpine is used docker run name=alpine dit alpine /bin/ash review the following descriptions of the parameters in the command \ name container name d run container in background and print container id i keep stdin open even if not attached t allocate a pseudo tty alpine alpine linux distribution /bin/bash run bash on container learn more about docker container run step 2 get mac address of container use the following command to view and copy the mac address of the container docker inspect alpine |grep macaddress|tr d ' ,"'|sort u if you get this error from above command 'grep' is not recognized as an internal or external command , use the command below docker inspect f '{{ networksettings macaddress}}' alpine expect an output like this macaddress 02 42 0a 1e 32 02 copy the mac address part 02 42 0a 1e 32 02 step 3 recreate container use the following command to recreate the litmus edge container replace the mac address with your specific address information the use of the option mac address is to specify the old mac address docker run name=alpine dit mac address 02 42 0a 1e 32 02 alpine /bin/ash step 4 verify mac address use the command in step 2 to verify that the correct mac address is being used by the new container