To change the Kaspersky Scan Engine key file or activation code in Docker:
%LICENSE_FILE_DIRECTORY%.docker restart <container ID or name>
You can also restart the container by using the kse_docker_control.sh script, by running sequentially stop_httpd and start_httpd for the HTTP mode, or stop_icapd and start_icapd for the ICAP mode.
docker exec -it <container_id> bash -c 'cat /tmp/kavicapd/$(pgrep -o kavicapd).status'