How to change the IRIS user when starting a terminal session in an IRIS container?
Running "docker exec -it iris iris terminal IRIS" automatically logs you in as irisowner in the terminal session, but how do you log in as a different user?
Comments
When using the command docker exec -it iris iris terminal IRIS, it automatically logs you in as the irisowner user. To log in as a different user, you need to run the command interactively and specify the desired username and password. The process is as follows:
-
Open a terminal session in the container using:
docker exec -it iris iris terminal IRIS -
This will prompt you for a username. Instead of proceeding automatically, enter the username you want (e.g.,
admin) and follow with the corresponding password for that user. -
If authentication details are required to be automated, consider passing environment variables during container setup to define the user and password. For example:
docker run --rm --name iris -d -p 9091:1972 -p 9092:52773 -e IRIS_PASSWORD=yourpassword -e IRIS_USERNAME=yourusername intersystemsdc/iris-community
This approach ensures you can initiate sessions under a different user account [1][2].
Sources:
Do $System.Security.Login("<username>") will work for this, assuming you don't have any custom security configuration that prevents this workaround.