Question
· Aug 20

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?

Product version: IRIS 2025.1
$ZV: IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2025.1
Discussion (2)3
Log in or sign up to continue

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:

  1. Open a terminal session in the container using:
    docker exec -it iris iris terminal IRIS
  2. 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.

  3. 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: